I created a line graph with a data source. I then change the data source and call setDataSource() to update the graph. How do I update the vertical scaling?
Thanks,
Mike
Vertical Scaling
RE: Vertical Scaling
Mike,
The vertical axis range should be updated automatically, unless you have called myAxis.setAutoRange(false). If this is not happening then it's a bug.
If you have set the AutoRange property to false, then you could call the setMinimumAxisValue() and setMaximumAxisValue() methods (defined in NumberAxis.java) to update the range.
Regards,
DG.
The vertical axis range should be updated automatically, unless you have called myAxis.setAutoRange(false). If this is not happening then it's a bug.
If you have set the AutoRange property to false, then you could call the setMinimumAxisValue() and setMaximumAxisValue() methods (defined in NumberAxis.java) to update the range.
Regards,
DG.