[Feature] Change specific data point symbol by hover
What problem does this feature solve?
Cannot change data point symbol by hover.
For example, if I hover on data point ['Tue', 230] in https://echarts.apache.org/examples/en/editor.html?c=line-simple, I wanna highlight the point with different symbol, such as diamond or triangle.
I know there is markPoint option, but as far as I know, it doesn't highlight data point by hover.
What does the proposed API look like?
Change specific data point symbol by hove. If it's not hovered, display the normal data point.
good idea for a new [Feature]. Currently symbol is attribute of the entire line and cannot be changed for individual items. Got to stick to emphasis. Demo Code
disclaimer
opinions expressed in this post are strictly personal, as ECharts user, not a developer
I would also like to have the ability to hide data points and only display a specific point when hovering over it.
I’m not sure if this is currently possible, but if not, it could be added to the specification.
I would also like to have the ability to hide data points and only display a specific point when hovering over it.
I’m not sure if this is currently possible, but if not, it could be added to the specification.
Did you manage to find a way to achieve this? Would be great to know how to do this.
I would also like to have the ability to hide data points and only display a specific point when hovering over it.
I’m not sure if this is currently possible, but if not, it could be added to the specification.
This is actually possible, I believe it's supported from v4. You just need to specify showSymbol: false for series. Hovering tooltip would automatically show the symbol. You can adjust symbol and sizes as ususal, they would be effect on hover. For v4 see this example, for v5 here.