Browse Source

面积图fillcolor

Karsa 2 years ago
parent
commit
bdf2ddf75e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/chartShow/index.vue

+ 2 - 0
src/views/chartShow/index.vue

@@ -224,6 +224,8 @@ export default defineComponent({
               : `${item.EdbName}${dynamic_tag}`,
               : `${item.EdbName}${dynamic_tag}`,
           color: item.ChartColor,
           color: item.ChartColor,
           lineWidth: (chartInfo.ChartType === 1 || (chartInfo.ChartType === 6 && item.ChartStyle === 'spline')) ? Number(item.ChartWidth) : 0,
           lineWidth: (chartInfo.ChartType === 1 || (chartInfo.ChartType === 6 && item.ChartStyle === 'spline')) ? Number(item.ChartWidth) : 0,
+          fillColor: (chartInfo.ChartType === 3 || (chartInfo.ChartType === 6 && item.ChartStyle === 'areaspline')) ? item.ChartColor : undefined
+          
         };
         };
         item.DataList = item.DataList || []
         item.DataList = item.DataList || []
         for (let i of item.DataList) {
         for (let i of item.DataList) {