helgasoft commented on issue #19654:
URL: https://github.com/apache/echarts/issues/19654#issuecomment-1969624536

   The reason why tooltip cross does not 'snap' to Y-axis is that Y-axis type 
is 'value', not 'category' (like X-axis).
   A workaround with _markLine_ is possible solution - 
[Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpWAHpPFanSYs7Fy89o6weFRGVISwovzEHoLCYgCMAKwADDywAEwAzFm5OQAs2TkpABzZKXlp1cUA7GUAbBnWYR6-NLIANhDQyh2kALaMHADWADL93Uh28fPo7SRgwMA9kCBu8WBGrKyRdIy4eCEex_gACsD9LBzbiWSU3QwcwHinQ-jeFzG0GGdEt48NBGFsyBwlAshnhtMAAO4AYRgLGgYCIADNGD0Itl6DAMTMCLsoeh5nYANwoYbkRHaMZgAB0MAAFLRtBBWNo-lywDIWSAAJQIAB8CVgEAEGAQsBAjIARsx6NpRG1GUIwIwAJLQARUDBUpzkGWgSAwRkRKJ4VXWdXCUSSjDWQ2wGl0hkWqhgADy4Cg0BZ7lIlog0TE8XQQceowm0wGD0epEY0AgozN0Ex2NxEcSeHIw3l6zEtGgMEGslLAxsX0SVGGIHpeFcyFgAnwjHlPQ0RBJVFgDhzHg1IliSFgzhORHIxrsy0TpB6HaoPTcsEHiRA7wg6boeE1HD52XXHkV9HGrDelgEyJ6nDoIH640B8_QIEYAjb0FYRDyx_768WRJAKWexBSpOwwKAA).
 You could also adapt it to a click event.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to