-
Notifications
You must be signed in to change notification settings - Fork 100
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
Suggestion to specify the logarithm base for ValueAxis #1368
Comments
I am afraid we do not have plans implementing this in a near future, sorry. |
This feature will be good to have as many product candles are viewed in the base value, also mentioned the similar issue in #1046 |
Wanted to know can we achieve this by tweaking some part of amchart code? Or any possible leads. |
I was able to follow the following tutorial to hide the default grid & labels and add my own custom (base 2) values using ranges: |
@oliverpeng can you provide any codepen? It would be great! |
Updated the codepen so the labels show 2^n instead of a crazy value like 131,072. Hope this helps anyone looking to do the same. |
Thanks @oliverpeng for providing the codepen. Really appreciated your efforts. Actually I was looking for something like this to add : detailed explanation on : #1046 |
@martynasma It would be great you would consider this enhancement. Anytime soon! |
Question
For ValueAxis, when the logarithm option is enabled, the labels and tick lines are in base 10 (1, 10, 100, 1000, etc.) It would be great to be able to specify another base, in my particular use case, base 2 (1, 2, 4, 8, 16, 32, 64, etc.)
In photographic applications, base 2 is widely used as a doubling or halving of illumination represents +1 or -1 stop of light.
chart.yAxes.push( am5xy.ValueAxis.new(root, { logarithmic: true, }) ));
The text was updated successfully, but these errors were encountered: