diff --git a/src/views/dashboard/components/Chart/BarChart.vue b/src/views/dashboard/components/Chart/BarChart.vue index f8ecfe3e..82233c7f 100644 --- a/src/views/dashboard/components/Chart/BarChart.vue +++ b/src/views/dashboard/components/Chart/BarChart.vue @@ -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}%' diff --git a/src/views/dashboard/components/Chart/FunnelChart.vue b/src/views/dashboard/components/Chart/FunnelChart.vue index b2d64fa1..44206d21 100644 --- a/src/views/dashboard/components/Chart/FunnelChart.vue +++ b/src/views/dashboard/components/Chart/FunnelChart.vue @@ -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: { diff --git a/src/views/dashboard/components/Chart/PieChart.vue b/src/views/dashboard/components/Chart/PieChart.vue index 04611e47..8011b164 100644 --- a/src/views/dashboard/components/Chart/PieChart.vue +++ b/src/views/dashboard/components/Chart/PieChart.vue @@ -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: [ diff --git a/src/views/dashboard/components/Chart/RadarChart.vue b/src/views/dashboard/components/Chart/RadarChart.vue index db0f4314..998d62cd 100644 --- a/src/views/dashboard/components/Chart/RadarChart.vue +++ b/src/views/dashboard/components/Chart/RadarChart.vue @@ -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: '发货数量' } ]