src/views/cockpitPage/components/MaterialChart.vue
@@ -77,6 +77,9 @@ show: false, startValue: that.startValue, // 从头开始 endValue: that.endValue, // 一次性展示几个 zoomOnMouseWheel: false, moveOnMouseWheel: true, moveOnMouseMove: true, }, ], legend: { @@ -102,7 +105,7 @@ // rotate:45, margin: 10, show: true, fontSize:12, fontSize: 12, textStyle: { color: function (params, index) { let colorList = ["#dcb018", "#00FFFF"]; @@ -157,6 +160,9 @@ textStyle: { color: "#00FFFF", }, formatter: function (value) { return `${(value / 1000).toFixed(1)}k`; }, }, }, ],