|
|
@ -132,7 +132,7 @@ export class HomePageComponent implements OnInit { |
|
|
|
}, |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
data: [], |
|
|
|
data: [4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000,], |
|
|
|
type: 'bar', |
|
|
|
type: 'bar', |
|
|
|
itemStyle: { |
|
|
|
itemStyle: { |
|
|
|
color: { |
|
|
|
color: { |
|
|
@ -152,12 +152,26 @@ export class HomePageComponent implements OnInit { |
|
|
|
barWidth: '35%' |
|
|
|
barWidth: '35%' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
data: [], |
|
|
|
data: [4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000, 4000, 3000, 4000, 4000, 4000,], |
|
|
|
type: 'line', |
|
|
|
type: 'line', |
|
|
|
symbol: 'circle', |
|
|
|
symbol: 'circle', |
|
|
|
symbolSize: 5, |
|
|
|
symbolSize: 5, |
|
|
|
label: { |
|
|
|
label: { |
|
|
|
show: true |
|
|
|
normal: { |
|
|
|
|
|
|
|
show: true, |
|
|
|
|
|
|
|
// formatter: function (dataObj) {
|
|
|
|
|
|
|
|
// const { dataIndex, value } = dataObj;
|
|
|
|
|
|
|
|
// let labelText = value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// labelText = '';
|
|
|
|
|
|
|
|
// if (dataIndex % 2 === 0) { // 每隔三个x坐标显示一个
|
|
|
|
|
|
|
|
// labelText = value;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return `${labelText}`
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
itemStyle: { |
|
|
|
itemStyle: { |
|
|
|
color: '#fff', |
|
|
|
color: '#fff', |
|
|
@ -171,7 +185,7 @@ export class HomePageComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
grid: { |
|
|
|
grid: { |
|
|
|
left: '18px', |
|
|
|
left: '40px', |
|
|
|
right: '30px', |
|
|
|
right: '30px', |
|
|
|
bottom: '38px', |
|
|
|
bottom: '38px', |
|
|
|
top: '30px' |
|
|
|
top: '30px' |
|
|
@ -341,7 +355,7 @@ export class HomePageComponent implements OnInit { |
|
|
|
// itemHeight: 8,
|
|
|
|
// itemHeight: 8,
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
grid: { |
|
|
|
grid: { |
|
|
|
left: '36px', |
|
|
|
left: '40px', |
|
|
|
right: '30px', |
|
|
|
right: '30px', |
|
|
|
bottom: '38px', |
|
|
|
bottom: '38px', |
|
|
|
top: '66px' |
|
|
|
top: '66px' |
|
|
|