apache / echarts

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

While using markLine autoscale does not work. #18207

Open Mateusz19021996 opened 1 year ago

Mateusz19021996 commented 1 year ago

Version

4.6.5

Link to Minimal Reproduction

https://stackblitz.com/edit/angular-9-ngx-echarts-yceciu?file=src/app/app.component.ts

Steps to Reproduce

  1. Add data
  2. Try to add markLine to chart,
  3. turn on autoscale
  4. if markLine is greater than max value from data, it is not visable in chart / if You set max value to value of markLine it will cut the chart in not scaled parts

Current Behavior

If I want to scale my chart to equal areas using scale = true with markLine

  1. NO MAX VALUE , MARKLINE SET TO VALUE GREATER THAN MAX VALUE FROM DATA ===> markLine not visable
  2. MAX VALUE SET TO VALUE OF MARKLINE ===> markLine is visable, but chart is not scale properly

Expected Behavior

markLine value is visable and chart is scaled

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

helgasoft commented 1 year ago

Cannot understand and/or reproduce the problem. Demo Code based on your example, but without framework (Angular). Looks ok to me....

image