Selaa lähdekoodia

fix: ETA2.4.2堆叠图时都为非平滑图

ldong 2 kuukautta sitten
vanhempi
commit
4a8def0673
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      src/views/hzyb/hooks/chartRender.js

+ 1 - 2
src/views/hzyb/hooks/chartRender.js

@@ -744,13 +744,12 @@ function setStackOrCombinChart(e) {
       let predict_params = item.EdbInfoCategoryType === 1 ? getPredictParams(item,chartStyle) : {};
       //图表可配置的线条数就10条,第11条用第1条的配置,索引取下模
       const lineIndex = chartTheme ? index%chartTheme.lineOptionList.length : index
-
       let seriesItemObj={
           data:[],
           dataGrouping:{
               enabled:false
           },
-          type: chartStyle || item.ChartStyle,
+          type: e.ChartInfo.ChartType !== 3?(chartStyle || item.ChartStyle):ExtraConfig.IsHeap==1?'area':((chartTheme && chartTheme.lineOptionList[lineIndex].lineType) || item.ChartStyle),
           yAxis:serie_yIndex,
           name:temName,
           color: item.ChartColor,