Get started with flot CDN

MIT licensed

FLOT is a jQuery plugin for easing and animating elements position and calculation.

Tags:
  • jquery
  • plot
  • chart
  • graph
  • visualization
  • canvas
  • graphics
  • web

Stable version

Copied!

How to start using flot CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with flot CDN - cdnhub.io</title>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.cdnhub.io/flot/4.2.6/jquery.flot.js"></script>
    <script src="https://cdn.cdnhub.io/flot/4.2.6/plugins/jquery.flot.pie.js"></script>
    <style>
        #placeholder { width: 500px; height: 300px; }
    </style>
</head>
<body>
    <div id="placeholder"></div>

    <script>
        $(document).ready(function() {
            var data = [{
                label: "Series 1",
                data: [1, 2, 3, 4, 5],
                lines: { show: true },
                points: { show: false }
            }, {
                label: "Series 2",
                data: [1.5, 2.5, 3.5, 4.5, 5.5],
                lines: { show: true },
                points: { show: false }
            }];

            $.plot("#placeholder", 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!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
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