src/components/BarGraph.vue
@@ -71,6 +71,7 @@ props.layerData.points.forEach((e, i) => { xAxisData.value.push(e.len); }); data = trans(props.layerData.points); optionData = props.layerData.points; seriesData.value = []; @@ -116,6 +117,7 @@ if (myChart) { myChart.clear(); } var unit = props.layerData.unit ? props.layerData.unit : ''; var valXData = []; xAxisData.value.filter((rs) => { valXData.push((parseFloat(rs) / 1000).toFixed(3)); @@ -213,6 +215,7 @@ }, yAxis: { name: unit, type: "value", show: true, // 不显示坐标轴线、坐标轴刻度线和坐标轴上的文字 axisTick: {