Bar chart valueAxes gridCount

Hi Everyone,

Is there any way i can setup value label exactly in showing 10 times instead of changing dynamictly?

I tried to set up gridCount as 10, however it only shows 8 times sometimes

amCharts have a staggering number of options and it’s hard to keep them all straight. I highly recommend using their online editor to get an idea of what JSON options you’ll need.

For example, in this case you probably need to set a fixed maximum value for the axis.

"valueAxes": [
	{
		"maximum": 10,
		"autoGridCount": false,
		"gridCount": 10
	}
],

Hi Albert,

Thanks for your reply,

Setup a Maximum value deos not working well since some of the record having range from 100 - 1000
and some of them just 0 - 1.

I tried the online editor, and which also looks wrong.

you can see the gridCount be setup as 10, however it shows 9 times only.

Same code if i can the first column to 80 then it display 10 times label

And i also find from their documentation, it says “approximate”…

So does that means it has no way to set up as extactly 10 row right?

It would seem that way, yes. I don’t know of a good way to reconcile this with such a wide possible range. Normally when this has come up with others, the potential range on the chart was consistent, allowing us to take the approach above.

Thanks for your reply any way :slight_smile: