Browse Source

图表标识调整

hbchen 11 months ago
parent
commit
0e3f0bd196
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/hzyb/chart/Detail.vue

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

@@ -1428,12 +1428,12 @@ const setSplineOpt=(data)=>{
             visible:true,
             LatestDate:item.LatestDate,
             LatestValue:item.LatestValue,
-            marker: {
-                enabled:chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none',
+            marker: chartTheme && chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none'?{
+                enabled:true,
                 symbol: chartTheme.lineOptionList[index].markType || 'circle',
                 fillColor:chartTheme.lineOptionList[index].markColor,
                 radius: chartTheme.lineOptionList[index].markSize
-            },
+            }:{},
             ...predict_params
         }
         item.DataList = item.DataList || [];
@@ -1858,12 +1858,12 @@ const setSeasonOpt=(data)=>{
                 name:item.ChartLegend,
                 color:colorsArr.slice(-chartDataHandle.length)[index],                
                 visible:true,
-                marker: {
-                    enabled:chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none',
+                marker: chartTheme && chartTheme.lineOptionList[index].dataMark && chartTheme.lineOptionList[index].dataMark!='none'?{
+                    enabled:true,
                     symbol: chartTheme.lineOptionList[index].markType || 'circle',
                     fillColor:chartTheme.lineOptionList[index].markColor,
                     radius: chartTheme.lineOptionList[index].markSize
-                },
+                }:{},
                 ...predict_params
             }
             item.DataList=item.DataList||[]