morrisjs / morris.js

Pretty time-series line graphs
http://morrisjs.github.com/morris.js/
6.92k stars 1.23k forks source link

ymax option in line graph is not affected on redraw() #781

Open r8b8 opened 5 years ago

r8b8 commented 5 years ago

If I update the value of ymax using graph instance and try to redraw the graph, ymax value will update in the instance but graph won't redraw the new ymax value.

let graph = Morris.Line(configuration);
graph.options.ymax = 1000;
graph.redraw(); console.log(graph.options.ymax) // gives 1000 but graph wont update