调整基站接口
This commit is contained in:
@@ -98,7 +98,7 @@ function initPicture() {
|
||||
if (resArr[0].status === 'fulfilled') {
|
||||
testArr = completeData(resArr[0].value.data, wantArr);
|
||||
testArr.map((item: any) => {
|
||||
item.name = t('views.index.' + item.name) + ':' + item.value;
|
||||
item.name = t('views.index.' + item.name) + ': ' + item.value;
|
||||
pieArr.push(item);
|
||||
});
|
||||
}
|
||||
@@ -178,20 +178,16 @@ function initPicture() {
|
||||
shadowBlur: 10,
|
||||
shadowOffsetX: 0,
|
||||
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
||||
// color: function (params: any) {
|
||||
// console.log(params);
|
||||
// // 设置每个数据项的颜色
|
||||
// var colorList = {
|
||||
// '#FFAE57',
|
||||
// '#FF7853',
|
||||
// '#EA5151',
|
||||
// '#CC3F57',
|
||||
// '#9A2555',
|
||||
// }
|
||||
|
||||
// ;
|
||||
// return colorList[params.dataIndex];
|
||||
// },
|
||||
color: function (colors: any) {
|
||||
var colorList = [
|
||||
'#FFAE57',
|
||||
'#FF7853',
|
||||
'#EA5151',
|
||||
'#CC3F57',
|
||||
'#CC0000',
|
||||
];
|
||||
return colorList[colors.dataIndex];
|
||||
},
|
||||
},
|
||||
},
|
||||
//柱状
|
||||
|
||||
@@ -112,7 +112,7 @@ function initPicture() {
|
||||
value: [upValue, downValue],
|
||||
};
|
||||
|
||||
var color = ['rgba(230, 234, 101', 'rgba(92, 123, 217'];
|
||||
var color = ['rgba(7,217,162', 'rgba(92, 123, 217'];
|
||||
var lineY: any = [];
|
||||
|
||||
for (var i = 0; i < charts.names.length; i++) {
|
||||
@@ -133,7 +133,7 @@ function initPicture() {
|
||||
},
|
||||
{
|
||||
offset: 1,
|
||||
color: color[x] + ', 0)',
|
||||
color: color[x] + ', 0.5)',
|
||||
},
|
||||
]),
|
||||
shadowColor: 'rgba(0, 0, 0, 0.1)',
|
||||
|
||||
Reference in New Issue
Block a user