Browse Source

面积图fillcolor

Karsa 3 years ago
parent
commit
b42cf4b0f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/hzyb/chart/Detail.vue

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

@@ -328,7 +328,6 @@ const setSplineOpt=(data)=>{
             dataGrouping:{
                 enabled:false
             },
-            // type:item.ChartStyle,
             type: resData.value.ChartInfo.ChartType ===6 ? item.ChartStyle : chartStyle,
             yAxis:index,
             // name:dynamic_arr.length > 1
@@ -338,6 +337,7 @@ const setSplineOpt=(data)=>{
             color: item.ChartColor,
             // lineWidth: Number(item.ChartWidth),
             lineWidth: (resData.value.ChartInfo.ChartType === 1 || (resData.value.ChartInfo.ChartType === 6 && item.ChartStyle === 'spline')) ? Number(item.ChartWidth) : 0,
+            fillColor: (resData.value.ChartInfo.ChartType === 3 || (resData.value.ChartInfo.ChartType === 6 && item.ChartStyle === 'areaspline')) ? item.ChartColor : undefined,
             visible:true,
             LatestDate:item.LatestDate,
             LatestValue:item.LatestValue