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
echarts3中柱状图 柱子颜色怎么用渐变色?
option = { }
The text was updated successfully, but these errors were encountered:
// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果最后一个参数传 true,则该四个值是绝对的像素位置
true
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: 'red' // 0% 处的颜色 }, { offset: 1, color: 'blue' // 100% 处的颜色 }], false) // 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变 color: new echarts.graphic.RadialGradient(0.5, 0.5, 0.5, [...], false) // 纹理填充 color: new echarts.graphic.Pattern( imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串 'repeat' // 是否平铺, 可以是 repeat-x, repeat-y, no-repeat )
Sorry, something went wrong.
http://echarts.baidu.com/demo.html#bar-gradient
echarts.graphic.Pattern 什么时候可以支持?
No branches or pull requests
问题简述 (One-line summary)
echarts3中柱状图 柱子颜色怎么用渐变色?
版本及环境 (Version & Environment)
重现步骤 (Steps to reproduce)
期望结果 (Expected behaviour)
可能哪里有问题 (What went wrong)
ECharts配置项 (ECharts option)
其他信息 (Other comments)
The text was updated successfully, but these errors were encountered: