apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.28k stars 19.61k forks source link

When the yAxis value of the markline exceeds the yAxis range, the markline will not be displayed #19715

Open havenothingtosay opened 6 months ago

havenothingtosay commented 6 months ago

Version

5.4.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MrtpAC2jBwA1gAyvd7uCYlgIjFIzrjRGel2trN2cdvotnYA3EA

Steps to Reproduce

when set markline.yAxis = 500,

markLine: {
  data: [{yAxis: 500}]
}

if yAxis.max < 500, markline will not be displayed

image

Current Behavior

image

Expected Behavior

markline can be displayed normally

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

wangyexiang commented 5 months ago

+1. How to fix it?