渐变色
, "series": [ { "name": "计划提货", "type": "bar", "color": { "type": "linear", "x": 0, "y": 0, "x2": 0, "y2": 1, "colorStops": [ { "offset": 0, "color": "#14c8d4" }, { "offset": 1, "color": "#04EBC1" } ], "globalCoord": false }, "data": [ 2, 4.9, 7, 23.2 ], "itemStyle": { "normal": { "label": { "show": true, "position": "top", "textStyle": { "color": "#FFFFFF", "fontSize": 16 } } } } }, { "name": "实际提货", "type": "bar", "color": { "type": "linear", "x": 0, "y": 0, "x2": 0, "y2": 1, "colorStops": [ { "offset": 0, "color": "#14c8d4" }, { "offset": 1, "color": "#C3E046" } ], "globalCoord": false }, "data": [ 2.6, 5.9, 9, 26.4 ], "itemStyle": { "normal": { "label": { "show": true, "position": "top", "textStyle": { "color": "#FFFFFF", "fontSize": 16 } } } } } ]
图标偏右
"legend": { "x": "right", "data": [ "供应商库存量", "供应商已发货量" ], "textStyle": { "color": " #ffffff" } },
yAxis 格式化ms
yAxis : [ { type : 'value', axisLabel:{formatter:'{value} ms'} } ],
textStyle 改变字体颜色
"textStyle": { "color": "#ffffff", "fontSize": 16 },
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)