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/09/27 09:49:05 UTC

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

pierrebonny opened a new issue #15798:
URL: https://github.com/apache/echarts/issues/15798


   ### What problem does this feature solve?
   When user trigger a mouse event on an axis label you cannot know its index. The main goal is to know on which label the user doies any mouse action.
   In V4 it was possible to send an object as axis data so that the event can pass it when triggered. In that object I put an id to resolve my feature. Now you can only pass a string to the axis data so I cannot do this anymore.
   
   ### What does the proposed API look like?
   I would like an additional data in the axis label event click with an index corresponding.
   i.e: If I click on the first label of my axis I would like to get index 0. 
   Else it can be ok to pass an id to the axis label data and get it in the mouse event
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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


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

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-939809320


   @ouassimBenMosbah @pierrebonny Could you please provide the example code about how you use this feature in v4?


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


[GitHub] [echarts] Ovilia closed issue #15798: Event data missing on axis label click

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #15798:
URL: https://github.com/apache/echarts/issues/15798


   


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


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

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-940851479


   @pierrebonny Can you provide a full example?


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


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

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-927704945


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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


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

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-940851568


   @pierrebonny Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.


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


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

Posted by GitBox <gi...@apache.org>.
pierrebonny commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-946432375


   Here is a demo of what I used to do before V5:
   https://codepen.io/Pierre63/pen/LYjNJOq


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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
pierrebonny commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-930991026


   @pissang @Ovilia Please help, thanks


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


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

Posted by GitBox <gi...@apache.org>.
ouassimBenMosbah commented on issue #15798:
URL: https://github.com/apache/echarts/issues/15798#issuecomment-933238741


   Same problem here. I would like to send back object or at least add an id.


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