Update index.html

update code for generate graphs