Getting started with dygraphs

Installation or Setup

Create a file called hello.html with the following content:

<!doctype html>
    <script src="//"></script>
    <link rel="stylesheet" href="">
    <div id="chart-div"></div>
    <script type="text/javascript">
        g = new Dygraph(
              [0, 0, 0],
              [1, 1, 1],
              [2, 2, 4],
              [3, 3, 9]
            ], {
              labels: ['X', 'Apples', 'Oranges']

This loads the dygraphs JavaScript and CSS from a CDN.

The bit in the <script> tag creates the chart. It specifies a data set with two series: “Apples” and “Oranges”, as well as the x-axis.

For more, see the dygraphs tutorial