We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
给坐标轴的axisLine.lineStyle.color设置渐变颜色,官方例子如下
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: 'red' // 0% 处的颜色 }, { offset: 1, color: 'blue' // 100% 处的颜色 }], false)
当最后一行true是可以的,false就会报错,无论x轴还是y轴都是如此
出现渐变颜色
绘制canvas时起始坐标和终止坐标类型错误,解析为NaN
option = { xAxis: { type: 'category', boundaryGap: false, data: date, axisLine: { lineStyle: { color: new echarts.graphic.LinearGradient(0, 0, 1, 1, [ { offset: 0, color: '#000' }, { offset: 1, color: '#f00' }, ], false) } } }, }
报错信息
The text was updated successfully, but these errors were encountered:
0ca7b34
How is this problem solved?
Sorry, something went wrong.
No branches or pull requests
问题简述 (One-line summary)
给坐标轴的axisLine.lineStyle.color设置渐变颜色,官方例子如下
当最后一行true是可以的,false就会报错,无论x轴还是y轴都是如此
版本及环境 (Version & Environment)
重现步骤 (Steps to reproduce)
期望结果 (Expected behaviour)
出现渐变颜色
可能哪里有问题 (What went wrong)
绘制canvas时起始坐标和终止坐标类型错误,解析为NaN
ECharts配置项 (ECharts option)
其他信息 (Other comments)
报错信息
![2016-07-07 5 42 36](https://cloud.githubusercontent.com/assets/10066358/16649220/794deeae-446a-11e6-8179-d921a423f2f5.png)
![2016-07-07 5 51 51](https://cloud.githubusercontent.com/assets/10066358/16649434/8a8ef7f2-446b-11e6-9826-eb777c00d8fe.png)
The text was updated successfully, but these errors were encountered: