Get started with dygraph CDN

MIT licensed

Interactive, dynamic line charts: Dygraph library.

Tags:
  • timeseries
  • chart
  • canvas
  • visualization
  • dygraphs

Stable version

Copied!

How to start using dygraph CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with dygraph CDN - cdnhub.io</title>
    <style>
        #graphdiv { width: 800px; height: 600px; }
    </style>
</head>
<body>
    <div id="graphdiv"></div>
    <script src="https://cdn.cdnhub.io/dygraph/2.2.1/dygraph.min.js"></script>
    <script>
        // Data for the graph
        var data = [
            [1, 2], [2, 3], [3, 5], [4, 7], [5, 11], [6, 12], [7, 13], [8, 10], [9, 8], [10, 6]
        ];

        // Create a new Dygraph
        var graph = new Dygraph(document.getElementById('graphdiv'), data);
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions