You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/11 07:19:56 UTC
[GitHub] ramarro123 commented on issue #9188: tooltip formatter when using
axis trigger
ramarro123 commented on issue #9188: tooltip formatter when using axis trigger
URL: https://github.com/apache/incubator-echarts/issues/9188#issuecomment-428848085
umm, i have created a demo here
http://jsfiddle.net/Lb4nkfcj/
i am using 4 series and a dataset with some "strange" mapping that will (eventually) allow me to create a gantt with a custom item renderer.
Having said so, now the chart doesn't display anything :) that's expected...
but, if i go around axe with cursor, i get "10" that's the size of dataset, not the size of series (that's 4)
on params, for tooltip, i get the full dataset, so it's impossible to know at which point of axes i am.
if i know the X position, then i can iterate the dataset to get the current position (or the nearest position, or whatever i want to do) but i haven't find a way to get the current X position.
even if trigger is axis (expecially with trigger axis i will say) having the position/value of axis it's necessary, it allow to understand the current position of cursor.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org