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 2021/03/26 05:46:02 UTC

[GitHub] [echarts] susiwen8 commented on issue #14519: In the highlight action, if the type of "seriesName" is set to array, only one series will be highlighted

susiwen8 commented on issue #14519:
URL: https://github.com/apache/echarts/issues/14519#issuecomment-807954557


   ```js
   option = {
       xAxis: {
           type: 'category',
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           name: 'line-1',
           data: [820, 932, 901, 934, 1290, 1330, 1320],
           type: 'line',
           smooth: true
       },{
           name: 'line-2',
           data: [930, 1042, 1011, 1034, 1390, 1430, 1420],
           type: 'line',
           smooth: true
       }]
   };
   
   
   setTimeout(function() {
       myChart.dispatchAction({
            type: 'highlight',
           seriesName: ['line-1', 'line-2'],
       }
   );
       
   }, 2000);
   ```
   
   Can't reproduce.


-- 
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.

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