You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/01/04 06:10:53 UTC

[GitHub] [echarts] boswellgao commented on issue #14368: splitArea的颜色在dataZoom启用时, 初始化/拖拽/缩放出现的渲染错误

boswellgao commented on issue #14368:
URL: https://github.com/apache/echarts/issues/14368#issuecomment-1004551912


   I have the same problem And so far ,I am not solved it,even I use dataZoom to reSet the colors
   ```javascript
   myChart.on('dataZoom',params => {
       var option = myChart.getOption()
       window.OrigionalColor = window.OrigionalColor ? window.OrigionalColor : option.yAxis[0].splitArea.areaStyle.color
       var sliderZoom = option.dataZoom[0]
       var startValue = sliderZoom.startValue
       var endValue = sliderZoom.endValue
       var color = window.OrigionalColor.slice(startValue,endValue+1)
       var newOption = {xAxis: {splitArea:{show:true,areaStyle: {color: color}}}}
       myChart.setOption(newOption)
   })
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org