refactoring the html report to add a chart.