Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set step in an Axis #52

Closed
DanChaltiel opened this issue Jul 11, 2016 · 3 comments
Closed

Cannot set step in an Axis #52

DanChaltiel opened this issue Jul 11, 2016 · 3 comments

Comments

@DanChaltiel
Copy link

I have a XY chart, and my points are measured every 30 minutes.
For this reason, I want to set the step of my xAxis to 30.
For very surprising reasons, the step of ValueAxis is read-only.

I tried the tips written on https://www.amcharts.com/tutorials/user-defined-minmax-values-of-value-axis/, but changing gridcount and labelFrequency could only change step to 20 or 50, but no other value.

It seems wanted by the team, so maybe it's more a feature request.
I may ask why is it wanted if so ?

@martynasma
Copy link
Collaborator

The step is a calculated value, not a setting, hence it being read-only.

I'm afraid there's currently no way to force 30 min increments on a date-based value axis. The chart will kind of determine it by itself.

You can play around with another setting as well: minHorizontalGap

I hope this will help.

There are no immediate plans to implement a user-defined step setting.

Sorry.

@julianljk
Copy link

"on a date-based value axis" is this only for date based values, or does this apply to number based values as well

@martynasma
Copy link
Collaborator

This goes for all value axes. The chart uses fuzzy logic to determine number of grids/values and thus increments.

As I mentioned previously you can play around with minHorizontalGap (or minVerticalGap for vertical axes) to maybe find a setting that suits your needs and produces increments that you require.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants