morrisjs / morris.js

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

How to reload chart without whole page? #802

Open maulistic opened 3 years ago

maulistic commented 3 years ago

Hi. May i get some help? why it still doesn't work? thanks for help.

my code:

<!DOCTYPE html>

Refresh Morris

index.txt

Greg-J commented 3 years ago

Did you look at the documentation? http://morrisjs.github.io/morris.js/lines.html

Specifically at the top of the page:

Note 2: if you need to update the plot, use the setData method on the object that Morris.Line returns. There's a setData example in the GitHub repo.