Browse Source

奇怪柱形图单位

Karsa 1 year ago
parent
commit
323ee5270b
1 changed files with 2 additions and 1 deletions
  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,