Search code examples
javachartsjavafxaxisupperbound

setUpperBound of pictured chart


Can I change the maximum value of Axis if LineChart is drawn already? I know about setUpperBound() method, but I see that it works well when it is used with initialization of chart. But I want to change upper and lower bounds of an existed chart (there is no result).


Solution

  • The problem was in auto ranging. Desicion:

     yAxis.setAutoRanging(false);