浏览代码

面积图fillcolor

Karsa 2 年之前
父节点
当前提交
bdf2ddf75e
共有 1 个文件被更改,包括 2 次插入0 次删除
  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}`,
           color: item.ChartColor,
           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 || []
         for (let i of item.DataList) {