For a project I'm working on right now, we're using HighCharts[0] which makes use of SVG. There's a ton of examples of how it works, so I won't delve into that, but I'm thinking you could probably do this by making use of HighCharts like you normally would, but using output buffering [1] and headers [2]