永洪社区
标题:
复制官网的示例代码后无法正常绘制
[打印本页]
作者:
烬秋
时间:
2024-8-15 11:28
标题:
复制官网的示例代码后无法正常绘制
作者:
yhdata_lyaa
时间:
2024-8-15 13:11
哪里的官网复制的,版本对应吗
作者:
烬秋
时间:
2024-8-15 13:15
yhdata_lyaa 发表于 2024-8-15 13:11
哪里的官网复制的,版本对应吗
https://antv-2018.alipay.com/zh-cn/g2/3.x/demo/radar/basic.html
看上去好像是3.x版本 现在BI是2.4.9 是要更新版本么?
作者:
烬秋
时间:
2024-8-15 15:45
yhdata_lyaa 发表于 2024-8-15 13:11
哪里的官网复制的,版本对应吗
换了个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里?
作者:
yhdata_lyaa
时间:
2024-8-15 16:32
绑定字段以后,类似这样写
value: options.column2,
欢迎光临 永洪社区 (http://club.yonghongtech.com/)
Powered by Discuz! X3.4