fix: 修复控制台警告

Former-commit-id: 594f3149f4d641de061637e4a961ba67b575e48c
This commit is contained in:
郝先瑞
2022-05-21 23:45:51 +08:00
parent 14d7d879a0
commit 6a72ac9b2a
4 changed files with 17 additions and 29 deletions

View File

@@ -86,8 +86,6 @@ function initChart() {
yAxis: [
{
type: 'value',
min: 0,
max: 10000,
interval: 2000,
axisLabel: {
formatter: '{value} '
@@ -95,8 +93,6 @@ function initChart() {
},
{
type: 'value',
min: 0,
max: 100,
interval: 20,
axisLabel: {
formatter: '{value}%'

View File

@@ -73,10 +73,6 @@ function initChart() {
top: 60,
bottom: 60,
width: '60%',
min: 0,
max: 100,
minSize: '0%',
maxSize: '100%',
sort: 'descending',
gap: 2,
label: {

View File

@@ -71,12 +71,10 @@ function initChart() {
roseType: 'area',
itemStyle: {
borderRadius: 6,
normal: {
color: function (params: any) {
//自定义颜色
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
return colorList[params.dataIndex];
}
color: function (params: any) {
//自定义颜色
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
return colorList[params.dataIndex];
}
},
data: [

View File

@@ -68,12 +68,12 @@ function initChart() {
// shape: 'circle',
radius: '60%',
indicator: [
{ name: '家用电器', max: 6500 },
{ name: '服装箱包', max: 16000 },
{ name: '运动户外', max: 30000 },
{ name: '手机数码', max: 38000 },
{ name: '汽车用品', max: 52000 },
{ name: '家具厨具', max: 25000 }
{ name: '家用电器' },
{ name: '服装箱包' },
{ name: '运动户外' },
{ name: '手机数码' },
{ name: '汽车用品' },
{ name: '家具厨具' }
]
},
series: [
@@ -82,25 +82,23 @@ function initChart() {
type: 'radar',
itemStyle: {
borderRadius: 6,
normal: {
color: function (params: any) {
//自定义颜色
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
return colorList[params.dataIndex];
}
color: function (params: any) {
//自定义颜色
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
return colorList[params.dataIndex];
}
},
data: [
{
value: [4200, 10000, 20000, 35000, 50000, 18000],
value: [400, 400, 400, 400, 400, 400],
name: '预定数量'
},
{
value: [5000, 14000, 28000, 26000, 42000, 21000],
value: [300, 300, 300, 300, 300, 300],
name: '下单数量'
},
{
value: [5000, 12000, 23000, 18000, 31000, 11000],
value: [200, 200, 200, 200, 200, 200],
name: '发货数量'
}
]