Explorar o código

奇怪柱形图单位

Karsa %!s(int64=2) %!d(string=hai) anos
pai
achega
323ee5270b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/hzyb/chart/Detail.vue

+ 2 - 1
src/views/hzyb/chart/Detail.vue

@@ -547,6 +547,7 @@ const initBarData = (data) => {
 const setBarChart = () => {
     let seriesData = [];
     const data = _.cloneDeep(barDateList.value);
+    const { ChartInfo } = resData.value;
 
     //x轴
     let xAxis = {
@@ -568,7 +569,7 @@ const setBarChart = () => {
     let yAxis = {
         ...basicYAxis,
         title: {
-            text:  ``,
+            text: ChartInfo.Unit,
             align: 'high',
             rotation: 0,
             y: -15,