Auto-range for NumberAxis



when I create new Axis I set range for it like this:

new NumberAxis(new NumberRange(0, 1000));

Is it possible to set some kind of auto-range? Like unlimit. To avoid to set it directly to 1000 or some other number.


Hi mobdevinc,

By default, when you add data to your chart without setting a default range on an Axis, it’s displayed range should change to accommodate all of the points.

Kind regards,