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