implemented chart.html