换了个chart
js:
option = {
// title: {
// text: 'Basic Radar Chart'
// },
legend: {
data: ["column1", '实际支出'
},
radar: {
// shape: 'circle',
indicator: [
{ name: '销售', max: 6500 },
{ name: '管理', max: 16000 },
{ name: '信息技术', max: 30000 },
{ name: '客户支持', max: 38000 },
{ name: '开发', max: 52000 },
{ name: '市场营销', max: 25000 }
},
series: [
{
name: '预算vs支出',
type: 'radar',
data: [
{
value: [4200, , 20000, 35000, 50000, 18000,
name: '预算',
itemStyle: {
color: 'rgba(78, 76, 172, 1)' //
},
lineStyle: {
color: 'rgba(78, 76, 172, 1)' //
},
areaStyle: {
color: 'rgba(78, 76, 172, 0.1)' //
}
},
{
value: [5000, 14000, 28000, 26000, 42000, 21000,
name: '实际支出',
itemStyle: {
color: 'rgba(203, 59, 56, 1)' //
},
lineStyle: {
color: 'rgba(203, 59, 56, 1)' //
},
areaStyle: {
color: 'rgba(203, 59, 56, 0.10)',
}
}
}
};
data:
[
{
"column1": "指标分类",
"column2": 1.1
}
]
怎么把column1放在name上 column2放在value里?
|