You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "ob-ARC (via GitHub)" <gi...@apache.org> on 2024/04/23 07:56:18 UTC
[I] [Feature] Tooltips on line series - also show on line segments [echarts]
ob-ARC opened a new issue, #19860:
URL: https://github.com/apache/echarts/issues/19860
### What problem does this feature solve?
My use case is a line series with steps, i.e. it only consists of vertical and horizontal segments. Our users would like to see tooltips on the line segments as well, indicating the current value of y on the horizontal segments, and the value of x on the vertical segments. I would suggest that the data sent to the formatter are either interpolated (I assume that calculation is not performance-critical), or the data of the nearest data point is used (this was already mentioned in #15437).
Example:
https://echarts.apache.org/examples/en/editor.html?c=line-simple&version=5.5.0&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AG4CGANgK5W0A0J6AthNCIAGbqVi9GGIgHYSAX1GxyOfEVRiK1OkzYdFfAcP3jJRAMzzFYYMGaQQanrDwALYAHciYAE7tLJPCpvCCpCWABtJ3UxWAgAEzpmASoARi4ndGhGXhpYWiToVPSYskpc_OTimLxyXgAjWzoAYwhvJuY9DOc3dwBlWobmL18qY3Qa-tteiAAvXJSRLrjGMEYicPCUzhSAXU4IgCZtvcPOA5PwszOLq9398IAWY_un8_uAVmuP54iANmO9l1rLZ7I4SugAPQQgBmwG8EjAYCCRGhrGgTUgMAAFCBGN5snh9pAmgBrKhgfZNFjMOqMUkASmQsG85NY3jgtCReDAtAA3OgFF10LD4Sskd46EhGHJkE05FUSq4PMN2GNSIwQNRoHEACrAABCwDi5BVVC6cicgrE0TE8USyQOCtIWRy9sKjrVmnKBU6ioGjTyLTaHSd4x6_UmQzIIzVE0G0zmRAWauWq3W4REdwiWzepwOADp3jczvmDkWXiXpOWIp8C9Xwv8UvmqztASVgXYIA5iODYCKEeKUWiMVBoDi8QSiRBSeTKdTaQymSywGyOVyefzYFbwVD-2LkXkpTKkHLQ6QlZ5o6qhbANVrdQajSar2aShaxO_YDsUHJeUA
### What does the proposed API look like?
No additional API required.
--
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.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
Re: [I] [Feature] Tooltips on line series - also show on line segments [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19860:
URL: https://github.com/apache/echarts/issues/19860#issuecomment-2073029218
if both axes can be converted to type 'category', then _axisPointer_ could be used instead of _tooltip_ - [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&version=5.5.0&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMrGAJ4gCmRA5AMYCGYFA5sAE6nWwC-ANGrFI58RJCXJVYdRi3ace_dGGDAANpBCiB6PAAtgAdyJg2AVwqL0JNhGbMKbGvVx5ql9M_wAFYBGhNHYjJKGlo2YDxXBW1YADN2AFtGAKIACgBKBAA-ZG4BPgE8BwgKQlgAbRjUKysIABMaVT8KAEY3GPRoegTJaiboVvaapQlG5qHhvFIEgCM1UIg2WlUKCZq9QwBlabnVYzMLDtgp2bVNiAAvSRaABncrOsZ6Ikrhq3KW3lgWgF17mvKACYvr9_u9gbBAX8juhygBmL5QsGwhHfaFvWEAFhB6Ix5WxsDhuLe5QArF8iciKuS0VTygA2HFHH4xPLoFncADcQA)
--
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
Re: [I] [Feature] Tooltips on line series - also show on line segments [echarts]
Posted by "ob-ARC (via GitHub)" <gi...@apache.org>.
ob-ARC commented on issue #19860:
URL: https://github.com/apache/echarts/issues/19860#issuecomment-2079227341
If anybody is interested, the following example shows how a hint on the line (showing the closest data point, interpolation not possible as far as I can see) can be achieved by using mouse event handlers and the showTip/hideTip actions via dispatchAction:
https://jsfiddle.net/gjrn97pm/4/
--
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
Re: [I] [Feature] Tooltips on line series - also show on line segments [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19860: [Feature] Tooltips on line series - also show on line segments
URL: https://github.com/apache/echarts/issues/19860
--
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
Re: [I] [Feature] Tooltips on line series - also show on line segments [echarts]
Posted by "ob-ARC (via GitHub)" <gi...@apache.org>.
ob-ARC commented on issue #19860:
URL: https://github.com/apache/echarts/issues/19860#issuecomment-2074514199
> if both axes can be converted to type 'category', then _axisPointer_ could be used instead of _tooltip_
I know that, but it is not an option.
--
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
Re: [I] [Feature] Tooltips on line series - also show on line segments [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19860:
URL: https://github.com/apache/echarts/issues/19860#issuecomment-4367197411
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. 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
Re: [I] [Feature] Tooltips on line series - also show on line segments [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19860:
URL: https://github.com/apache/echarts/issues/19860#issuecomment-4323017882
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
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