(本文档仅供参考)
...
问题1
想修改饼图的颜色,然后图例圆点显示,如下图:
...
解决方案
可以使用扩展属性实现,如下:
代码块 | ||
---|---|---|
| ||
{ "legendseries": [ { "showaxisLabel": "ture", //图例显示 "icon": "circle", //图例图标圆形 "textStyle{ "show": false }, "axisLine": { "colorlineStyle": "#424e67", "fontStyle{ "width": "normal5", "fontWight": "normal", "fontFamily": "微软雅黑", "fontSize": "12", "lineHeight": "20" }, //图例文字样式 }, //修改饼图的颜色,有几块区域就加几个颜色,我的图上只有两块区域 "color": ["red", "blue" } }, "detail": { "formatter": "function(value) { return value + '元';}" } } ] } |