Modernizing charts and graphs with Dygraphs?

I don’t know about Dygraphs.
But you might want to check this tutorial.
As an alternative or as an example of how to connect a graphing service.