amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
345 stars 92 forks source link

minBulletDistance not working for a Gantt chart with CategoryAxis and DateAxis #1671

Closed xiandew closed 1 month ago

xiandew commented 1 month ago

minBulletDistance does not work as expected for a Gantt chart with CategoryAxis as the y-axis and DateAxis as the x-axis.

It works when changing the DateAxis to ValueAxis, with the same data and the same settings.   Codepen: https://codepen.io/yagwanggaeguli/pen/gONXPZx?editors=0010

Environment (if applicable) amCharts version: 5.10.0 react: 16.13.1

martynasma commented 1 month ago

Would you expect minBulletDistance to work horizontally on this chart?

Since base axis is Y axis, I'd say it would make sense only if it is measured vertically, because horizontally there are no uniform positions of the bullets, since all columns are floating and variable width.

xiandew commented 1 month ago

I expected it to work vertically, which doesn't work currently I suppose?

In the codepen I provided, when I vertically zoom in/out the chart with a category axis and a date axis, the bullets won't show/hide accordingly as it would with a category axis and a value axis.

martynasma commented 1 month ago

Yup. That's what I was wondering about.

Indeed, it does not work. Looking into it.

martynasma commented 1 month ago

Fixed in 5.10.2.

[5.10.2] - 2024-08-23

Added

Fixed

Full change log.

Download options.

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