How can I make an adaptive width for the X-axis in AmCharts 5

68 views Asked by At

How can I make an adaptive width for the X-axis, so that when I shrink the screen, the columns with X-axis values are not deleted.

Here is my chart

Right now, if I compress the screen width, the columns get smaller and smaller and there is an offset that I don't understand how to adjust.

I want the number of X-axis columns to remain the same when compressing the screen width

I found one example where the width of the grid is adjusted with the parameter

baseInterval: { timeUnit: "day", count: 1 } but I don't understand how to integrate this into my code

Any ideas how to fix this?

0

There are 0 answers