fix: 修复控制台警告
Former-commit-id: 594f3149f4d641de061637e4a961ba67b575e48c
This commit is contained in:
@@ -86,8 +86,6 @@ function initChart() {
|
|||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
type: 'value',
|
type: 'value',
|
||||||
min: 0,
|
|
||||||
max: 10000,
|
|
||||||
interval: 2000,
|
interval: 2000,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
formatter: '{value} '
|
formatter: '{value} '
|
||||||
@@ -95,8 +93,6 @@ function initChart() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'value',
|
type: 'value',
|
||||||
min: 0,
|
|
||||||
max: 100,
|
|
||||||
interval: 20,
|
interval: 20,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
formatter: '{value}%'
|
formatter: '{value}%'
|
||||||
|
|||||||
@@ -73,10 +73,6 @@ function initChart() {
|
|||||||
top: 60,
|
top: 60,
|
||||||
bottom: 60,
|
bottom: 60,
|
||||||
width: '60%',
|
width: '60%',
|
||||||
min: 0,
|
|
||||||
max: 100,
|
|
||||||
minSize: '0%',
|
|
||||||
maxSize: '100%',
|
|
||||||
sort: 'descending',
|
sort: 'descending',
|
||||||
gap: 2,
|
gap: 2,
|
||||||
label: {
|
label: {
|
||||||
|
|||||||
@@ -71,12 +71,10 @@ function initChart() {
|
|||||||
roseType: 'area',
|
roseType: 'area',
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
borderRadius: 6,
|
borderRadius: 6,
|
||||||
normal: {
|
color: function (params: any) {
|
||||||
color: function (params: any) {
|
//自定义颜色
|
||||||
//自定义颜色
|
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
||||||
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
return colorList[params.dataIndex];
|
||||||
return colorList[params.dataIndex];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
|
|||||||
@@ -68,12 +68,12 @@ function initChart() {
|
|||||||
// shape: 'circle',
|
// shape: 'circle',
|
||||||
radius: '60%',
|
radius: '60%',
|
||||||
indicator: [
|
indicator: [
|
||||||
{ name: '家用电器', max: 6500 },
|
{ name: '家用电器' },
|
||||||
{ name: '服装箱包', max: 16000 },
|
{ name: '服装箱包' },
|
||||||
{ name: '运动户外', max: 30000 },
|
{ name: '运动户外' },
|
||||||
{ name: '手机数码', max: 38000 },
|
{ name: '手机数码' },
|
||||||
{ name: '汽车用品', max: 52000 },
|
{ name: '汽车用品' },
|
||||||
{ name: '家具厨具', max: 25000 }
|
{ name: '家具厨具' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
@@ -82,25 +82,23 @@ function initChart() {
|
|||||||
type: 'radar',
|
type: 'radar',
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
borderRadius: 6,
|
borderRadius: 6,
|
||||||
normal: {
|
color: function (params: any) {
|
||||||
color: function (params: any) {
|
//自定义颜色
|
||||||
//自定义颜色
|
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
||||||
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
return colorList[params.dataIndex];
|
||||||
return colorList[params.dataIndex];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
value: [4200, 10000, 20000, 35000, 50000, 18000],
|
value: [400, 400, 400, 400, 400, 400],
|
||||||
name: '预定数量'
|
name: '预定数量'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: [5000, 14000, 28000, 26000, 42000, 21000],
|
value: [300, 300, 300, 300, 300, 300],
|
||||||
name: '下单数量'
|
name: '下单数量'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: [5000, 12000, 23000, 18000, 31000, 11000],
|
value: [200, 200, 200, 200, 200, 200],
|
||||||
name: '发货数量'
|
name: '发货数量'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user