소스 검색

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

ldong 2 달 전
부모
커밋
4a8def0673
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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,