...
可以使用扩展属性实现,如下:
代码块 | ||
---|---|---|
| ||
"series": [ { "axisLabel": { "show": false }, "axisLine": { "lineStyle": { "width": "5" } }, "detail": { "formatter": "function(value) { return value + '元';}" } } { "legend": { "show": "ture", //图例显示 "orient": "vertical", //图例布局朝向,vertical竖向排版 "align": "left", //图例对齐方式 "right": "16px", //图例距右侧距离16像素 "top": "center", //图例距顶部上下居中 "icon": "circle", //图例图标圆形 //图例文字样式 "textStyle": { "color": "#424e67", "fontStyle": "normal", "fontWight": "normal", "fontFamily": "微软雅黑", "fontSize": "12", "lineHeight": "20" }, }, //有多少个就写多少个颜色值 "color": ["#FFAF00", "#004151", "#00B7BF", "#F9334C", "#FFAF00", "#004151", "#00B7BF", "#F9334C"] } |