Abhijith126 commented on issue #20757:
URL: https://github.com/apache/echarts/issues/20757#issuecomment-3077500642

   > > I have a line chart, for which I have tried adding itemstyle, areastyle 
and opacity for emphasis. Still it does not work.
   > 
   > I ran into the same issue when not using areaStyle (I’m also using 
gradient colors for the line), and the only solution I found was to disable 
emphasis entirely
   > 
   > ```
   > emphasis: {
   >   disabled: true,
   > }
   > ```
   
   So i was able to get it working with 
   
   `emphasis: { lineStyle: { color: s.color } }`
   
   This is my entire code, I hope it helps you
   
   `const getLineChartOptions = (data: TLineChartData) => ({
     tooltip: xyTooltip,
     grid: xyGrid,
     xAxis: categoryAxis(data.labels),
     yAxis: valueAxis,
     series: data.series.map(s => ({
       ...s,
       type: 'line',
       smooth: true,
       emphasis: { lineStyle: { color: s.color } },
     })),
   });`


-- 
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-unsubscr...@echarts.apache.org

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


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

Reply via email to