Login / Join
Simple jQuery Flot Chart Example
submitted on 26/07/2013 by
Codicode
+ infos
Config
Embed
Share
Simple jQuery Flot Chart Example
by
Codicode
Flot is a jQuery pure Javascript plotting library. It produces graphical plots of any number of datasets on-the-fly on the client-side.
The focus is on simple usage (all settings are optional), attractive looks and interactive features like zooming, hovering and mouse tracking.
The plugin works with Internet Explorer 6+, Firefox 2.x+, Safari 3.0+, Opera 9.5+ and Konqueror 4.x+ with the HTML canvas tag.
also, the excanvas Javascript emulation helper is used for IE backward comptability.
Framework 1 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
Framework 2 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
+ Js file(s) :
//www.flotcharts.org/javascript/jquery.flot.min.js
+ Css file(s) :
Apply
Link :
Direct http link :
Fork button :
Html code :
Embed preview :
Copy the following html code to your page to embed the preview,
To include many previews on a single page, just repeat the first line.
You can change the width, height and border color (bcolor).
<div class="refork-widget" code="a2e" style="width:100%;height:200px;" bcolor="#ccc"></div>
<script type="text/javascript" src="//snippet.run/d/z.js"></script>
HTML
<div align="center"> <div id="myChart" style="width:600px;height:300px;"></div> <div>
CSS
body { background-color:#000; padding:20px; }
Javascript
$(function () { var d1 = []; for (var i = 0; i < 14; i += 0.5) d1.push([i, Math.sin(i) * 2]); var d2 = [[0, 3], [4, 8], [8, 5], [9, 13], [12, 10]]; // a null signifies separate line segments var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]]; $.plot($("#myChart"), [ d1, d2, d3 ]); });
©2013 Copyright snippet.run
Privacy
-
Terms of use
-
About
-
Contact