New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
折线图动态设置setOption->series->areaStyle ,无法生效 #2625
Comments
我去 无论我怎么排版,这代码排版还是这样,,无语了,,大神直接粘贴到案例中就能跑。 |
@pissang 经过不断测试,发现雷达图这么设置却是可以的!
chart.setOption({
legend: {
data: ['radar', 'radar2', 'radar3']
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
polar: {},
angleAxis: {
data: xAxisData,
boundaryGap: false
},
radiusAxis: {
},
series: [{
name: 'radar',
stack: 'all',
type: 'radar',
symbolSize: 10,
data: data1
}, {
name: 'radar2',
stack: 'all',
type: 'radar',
symbolSize: 10,
data: data2
}, {
name: 'radar3',
stack: 'all',
type: 'radar',
data: data3
}]
});
setTimeout(function() {
var option = chart.getOption();
option.series[0].areaStyle = {normal:{}};
chart.setOption(option)
}, 2000); |
外面包上 ```js ``` |
@pissang 大神我已经将代码格式好了,能帮忙看一下为什么折线图这么去设置而不生效? |
确认是 bug,明后天发 3.0.3 |
是我使用的问题的问题吗?
配置如下
The text was updated successfully, but these errors were encountered: