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/02/10 18:34:56 UTC

[GitHub] [echarts] tamersalama opened a new issue #14258: Brush (lineX, lineX) doesn't work with line charts

tamersalama opened a new issue #14258:
URL: https://github.com/apache/echarts/issues/14258


   ### Version
   5.0.2
   
   ### Reproduction link
   [https://codepen.io/tamersalama/pen/mdOraGb?editors=1111](https://codepen.io/tamersalama/pen/mdOraGb?editors=1111)
   
   ### Steps to reproduce
   1- Create a *line* chart with a horizontal selector (lineX) brush
   
   2- Use the brush to select a data range
   
   3- The onbrushselected event fires up normally, however the event parameters' dataIndex (`params.batch[0].selected[0].dataIndex`) returns an empty array
   
   4- Changing the chart type to scatter or bar will result in a proper dataIndex being returned
   
   ### What is expected?
   It's expected that the `dataIndex` for the selection to have an array of selected values
   
   ### What is actually happening?
   dataIndex within `params.batch[0].selected[0].dataIndex` is empty
   
   <!-- 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.

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] pramitchoudhary commented on issue #14258: Brush (lineX, lineY) selection values are not available with line charts

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


   Thanks for the above trick @tamersalama 
   Also, `brushSelected` event doesn't seem to be documented. Will it be possible to add an entry for that in the docs?


-- 
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] tamersalama commented on issue #14258: Brush (lineX, lineY) selection values are not available with line charts

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


   Thank you for adding this a milestone. 
   
   As a workaround (in case anyone encountered the same issue) - I'm using `params.areas[0].coordRange` to get the selected range. Not perfect but could work is some cases.
   


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


[GitHub] [echarts] huanglianbiao commented on issue #14258: Brush (lineX, lineY) selection values are not available with line charts

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


   跟你一样的需求,你解决了吗


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14258: Brush (lineX, lineX) doesn't work with line charts

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






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


[GitHub] [echarts] echarts-bot[bot] removed a comment on issue #14258: Brush (lineX, lineY) selection values are not available with line charts

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] removed a comment on issue #14258:
URL: https://github.com/apache/echarts/issues/14258#issuecomment-776921990


   @tamersalama It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   </details>


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