Hi Massimo,
End-user software typically must validate all inputs. So all data should have already been validated by the caller before passing to ChartDirector. So if the value exceeds the maximum scale, ChartDirector assumes your code must want the pointer to move beyond the maximum scale.
The same applies to XYChart or and other chart types as well. For example, it is possible for a line to overshoot the axis scale. (In fact, some of our clients do this to create special effects.)
For your case, I think it is not a bad idea for your code to check the data range before passing the data to ChartDirector.
Regards
Peter KWAN |