Am Charts Javascript version, does not show the total number of tables on the category axis

everything

I use AmCharts to generate graphics, but when the size of the div is small, as it wants, it will somewhat hide the labels in the category. for example, by category, to show 1 2 3 4 5 6 , instead, it will show 1 3 5 along the axis. I wonder how I can turn it off or include a complete list of shortcuts to be displayed even if the div too small or any solution that could be provided for this problem?

====== UPDATE ============ For convenience of reading and research, I placed a link showing a real-time graph here. Here you can see that the name of the country does not appear completely in each column, because the limitation of space. So the question is how to disable this or somehow allow it to display the entire column name so that they match or shorten the text.

Thanks!

+6
source share
1 answer
 categoryAxis.gridCount = chartData.length; categoryAxis.autoGridCount = false; 

The above code is the solution for my problem, and it should be put in code that looks like this:

 // AXES // Category var categoryAxis = chart.categoryAxis; 

I found this solution. Hope that the one with the same problem will help you :) Enjoy!

Fiddle updated here

+9
source

Source: https://habr.com/ru/post/945427/


All Articles