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/10/11 12:18:16 UTC

[GitHub] [echarts] pierrebonny commented on issue #15798: Event data missing on axis label click

pierrebonny commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-939977619


   Thanks for the answer, in V4 I used to create the axis data like this:
   ```
   const categoryAxisOptions = {
         type: 'category',
         data: data.map((singleData, index) => ({ value: { label: 'test', id: 'testId', index } })),
       };
   ```
   And to recover data from event I was using:
   ```
   index = params.value.index;
   ```
   where params is the event triggered by any mouse event on any axis label


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