amcharts / amcharts4

The most advanced amCharts charting library for JavaScript and TypeScript apps.
https://www.amcharts.com/
1.16k stars 321 forks source link

Value Axis messed up when using strictMinMax, but only a single data item #1014

Closed RobbiesCode closed 5 years ago

RobbiesCode commented 5 years ago

A user might need the setting strictMinMax = true (without defining min or max values).

This works fine when there are more than 1 data items in the chart.data: https://codepen.io/varshamathukumalli/pen/xBGRvY?editors=0010.

This doesn't work when there is only a single data item in chart.data: https://codepen.io/team/amcharts/pen/rRVwwJ?editors=0010.

You'll see that there are 2 labels on top of the axis that overlap.

martynasma commented 5 years ago

Bug confirmed. Thanks!

martynasma commented 5 years ago

Fixed in 4.2.3.

[4.2.3] - 2019-03-14

Fixed

Full change log.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.