Open bingnoi opened 4 years ago
仪表盘自定义显示样式,无法实现
https://codepen.io/pen?editors=0010
js axisLabel: { textStyle: { // 属性lineStyle控制线条样式 fontWeight: "bolder", color: "#fff", shadowColor: "#fff", //默认透明 shadowBlur: 10 }, formatter: function(v) { switch (v+"") { case "0": return "优"; case "1": return "良"; case "2": return "中"; case "3": return "差"; } } }
js
![image](https://user-images.githubusercontent.com/53188228/82720029-60df2480-9ce2-11ea-8ddf-4938d8365159.png)
不好意思,可能是我菜的原因,但如果有大佬发现了原因,求指教一下可以吗
Summary 简述
仪表盘自定义显示样式,无法实现
Expect 期望结果
https://codepen.io/pen?editors=0010
Reproduce 重现示例
js
axisLabel: { textStyle: { // 属性lineStyle控制线条样式 fontWeight: "bolder", color: "#fff", shadowColor: "#fff", //默认透明 shadowBlur: 10 }, formatter: function(v) { switch (v+"") { case "0": return "优"; case "1": return "良"; case "2": return "中"; case "3": return "差"; } } }