minimum and maximum values should be available. Check that you've added data to your chart and all calculations ended before you try to get values.
You're right, I was mistaken about the minimum and maximum getting set, however, I am still having a problem. The axis I am querying runs from 0 to 2800 on the chart, but when I check the values I get:
minimum = -12.189
maxiumum = 2800
So max is correct, but min should be zero. Why is that not correct?
And what minimum value have you seen?
May be there is a free space between begining and first point.
You should understand that min and max is only a min and max of visible axis. It's not a lowest and greatest value in your data. If you need precise values of min and max in your data you should calculate it yourself.
I printed out all the values and the minimum is actually 0.06.
I actually only want to find the min and max of the axis, not of my data. So for instance 2800 is good for the max even though my max data isn't that high. The min should be 0 since that's what it shows on the chart. I just want to allow the user to set the min and max as overrides, via text fields, but when I initialize the fields, the min is coming out to that odd negative value.
I also have another graph were the max is 0.0000134 on the chart, but the axis.maximum value comes back as 0.000013399999999999999. So even the max is not always the same.
I also tried computedMinimum and computedMaximum but neither of these had the right value either...
This seems like it shouldn't be a very difficult problem. Does anyone know what would be causing max and min to return the wrong values?
Simply I cann't understand why do you think that it's wrong value.
If you don't like format with many digits you can round value and show it to the user.
If you whant to get to a user ability to change minimum and maximum values of axis you can't use auto detecting max and min. So for the first values you can get computed values.
The values from maxiumum and minimum are different from what is displayed visually on the chart. I just want to get the values flex is using on the chart, i.e. 0 for min and 2800 for max. How do I get what flex is displaying? I'm not using a labelfunction or anything special to truncate the axis numbers so I would hope that the axis could return the same value it is using to display.