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

   > 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 clic
 k event.
   
   
![image](https://github.com/apache/echarts/assets/48424960/51d9db55-805a-4c18-9e27-fe3171f88a22)
   
   May I ask how to manually adjust the division of the y-axis, as my original 
division had a markLine, which may conflict with your demo
   [中文:请问这个y轴的划分是如何手动调节呢,因为我原有的划分是有markLine,导致会和你的demo冲突]


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