I'm not sure of anyway to do it. However I do know something you can try.
Open Microsoft Excel, and create a histrogram (the line graph you are referring to.) Go to 'file' then click on 'save as' and then save it as an HTML file. Or click "Save As Webpage" and you will get a better output.
Although the code will be extremely messy and jumbled, it should give you the output you're looking for.
If you don't want to do any of that, then I suggest you just make the histogram in Excel or Photoshop or whatever, and then save it as a jpeg file and paste it into your HTML file. Can't go wrong with that.