I am using Android charts and would like to know more about how to customize the YAxis. In the tutorials, there is ussualy something like
builder.newNumericAxis()
.withMinorsPerMajor(4)
.withMaxAutoTicks(8)
.withGrowBy(new DoubleRange(0.1, 0.1))
.build();
In the documentation, I can’t find any explanation for withGrowBy(). What is it used for and are there any examples? What does it mean to have DoubleRange(0.1, 0.1) or DoubleRange(0.01, 0.01)?
- Primoz asked 5 years ago
- You must login to post comments
Hi Primoz,
Did you have a chance to take a look on this article. It contains a brief description of what GrowBy does. Basically it adds spacing to the VisibleRange during calculation of maximum range for axis. You just need to specify two fractions which will be always applied to the Min, Max values of VisibleRange.
Best regards,
Yura
- Yura Khariton answered 5 years ago
-
Thank you, I missed this one. Will look into it.
-
The link you provided does not describe GrowBy. Perhaps you meant this one: https://www.scichart.com/documentation/android/v2.x/webframe.html#Axis%20Ranging%20-%20Setting%20and%20Getting%20VisibleRange.html
- You must login to post comments
Please login first to submit.