• Home
  • History
  • Annotate
  • only in /external/chromium-trace/catapult/third_party/flot/
NameDateSize

..23-Aug-20164 KiB

API.md23-Aug-201652.3 KiB

CONTRIBUTING.md23-Aug-20163.2 KiB

excanvas.js23-Aug-201641 KiB

excanvas.min.js23-Aug-201618.9 KiB

FAQ.md23-Aug-20163.2 KiB

jquery.colorhelpers.js23-Aug-20166 KiB

jquery.colorhelpers.min.js23-Aug-20163.1 KiB

jquery.flot.canvas.js23-Aug-20169.4 KiB

jquery.flot.canvas.min.js23-Aug-20163.9 KiB

jquery.flot.categories.js23-Aug-20165.9 KiB

jquery.flot.categories.min.js23-Aug-20162.5 KiB

jquery.flot.crosshair.js23-Aug-20165.3 KiB

jquery.flot.crosshair.min.js23-Aug-20162.1 KiB

jquery.flot.errorbars.js23-Aug-201612.3 KiB

jquery.flot.errorbars.min.js23-Aug-20165.3 KiB

jquery.flot.fillbetween.js23-Aug-20165.1 KiB

jquery.flot.fillbetween.min.js23-Aug-20162.3 KiB

jquery.flot.image.js23-Aug-20167.2 KiB

jquery.flot.image.min.js23-Aug-20162.6 KiB

jquery.flot.js23-Aug-2016120.1 KiB

jquery.flot.min.js23-Aug-201651.7 KiB

jquery.flot.navigate.js23-Aug-201613.9 KiB

jquery.flot.navigate.min.js23-Aug-20166.4 KiB

jquery.flot.pie.js23-Aug-201623.3 KiB

jquery.flot.pie.min.js23-Aug-201611.9 KiB

jquery.flot.resize.js23-Aug-20163.2 KiB

jquery.flot.resize.min.js23-Aug-20162.3 KiB

jquery.flot.selection.js23-Aug-201612.8 KiB

jquery.flot.selection.min.js23-Aug-20165.1 KiB

jquery.flot.stack.js23-Aug-20166.9 KiB

jquery.flot.stack.min.js23-Aug-20162.4 KiB

jquery.flot.symbol.js23-Aug-20162.4 KiB

jquery.flot.symbol.min.js23-Aug-20161.2 KiB

jquery.flot.threshold.js23-Aug-20164.4 KiB

jquery.flot.threshold.min.js23-Aug-20161.8 KiB

jquery.flot.time.js23-Aug-201611.5 KiB

jquery.flot.time.min.js23-Aug-20166.7 KiB

jquery.js23-Aug-2016259.8 KiB

jquery.min.js23-Aug-2016139 KiB

LICENSE.txt23-Aug-20161 KiB

Makefile23-Aug-2016285

NEWS.md23-Aug-201639.3 KiB

PLUGINS.md23-Aug-20164.2 KiB

README.chromium23-Aug-2016236

README.md23-Aug-20163.7 KiB

README.chromium

1Name: Flot
2URL: http://www.flotcharts.org/
3Version: 0.8.3
4License: MIT
5License File: LICENSE.txt
6Security Critical: No
7
8Description:
9Flot is a JavaScript chart plotting library based on jQuery.
10
11Local Modifications:
12Removed examples/.
13
14

README.md

1# Flot [![Build status](https://travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot)
2
3## About ##
4
5Flot is a Javascript plotting library for jQuery.  
6Read more at the website: <http://www.flotcharts.org/>
7
8Take a look at the the examples in examples/index.html; they should give a good
9impression of what Flot can do, and the source code of the examples is probably
10the fastest way to learn how to use Flot.
11
12
13## Installation ##
14
15Just include the Javascript file after you've included jQuery.
16
17Generally, all browsers that support the HTML5 canvas tag are
18supported.
19
20For support for Internet Explorer < 9, you can use [Excanvas]
21[excanvas], a canvas emulator; this is used in the examples bundled
22with Flot. You just include the excanvas script like this:
23
24```html
25<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="excanvas.min.js"></script><![endif]-->
26```
27
28If it's not working on your development IE 6.0, check that it has
29support for VML which Excanvas is relying on. It appears that some
30stripped down versions used for test environments on virtual machines
31lack the VML support.
32
33You can also try using [Flashcanvas][flashcanvas], which uses Flash to
34do the emulation. Although Flash can be a bit slower to load than VML,
35if you've got a lot of points, the Flash version can be much faster
36overall. Flot contains some wrapper code for activating Excanvas which
37Flashcanvas is compatible with.
38
39You need at least jQuery 1.2.6, but try at least 1.3.2 for interactive
40charts because of performance improvements in event handling.
41
42
43## Basic usage ##
44
45Create a placeholder div to put the graph in:
46
47```html
48<div id="placeholder"></div>
49```
50
51You need to set the width and height of this div, otherwise the plot
52library doesn't know how to scale the graph. You can do it inline like
53this:
54
55```html
56<div id="placeholder" style="width:600px;height:300px"></div>
57```
58
59You can also do it with an external stylesheet. Make sure that the
60placeholder isn't within something with a display:none CSS property -
61in that case, Flot has trouble measuring label dimensions which
62results in garbled looks and might have trouble measuring the
63placeholder dimensions which is fatal (it'll throw an exception).
64
65Then when the div is ready in the DOM, which is usually on document
66ready, run the plot function:
67
68```js
69$.plot($("#placeholder"), data, options);
70```
71
72Here, data is an array of data series and options is an object with
73settings if you want to customize the plot. Take a look at the
74examples for some ideas of what to put in or look at the 
75[API reference](API.md). Here's a quick example that'll draw a line 
76from (0, 0) to (1, 1):
77
78```js
79$.plot($("#placeholder"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });
80```
81
82The plot function immediately draws the chart and then returns a plot
83object with a couple of methods.
84
85
86## What's with the name? ##
87
88First: it's pronounced with a short o, like "plot". Not like "flawed".
89
90So "Flot" rhymes with "plot".
91
92And if you look up "flot" in a Danish-to-English dictionary, some of
93the words that come up are "good-looking", "attractive", "stylish",
94"smart", "impressive", "extravagant". One of the main goals with Flot
95is pretty looks.
96
97
98## Notes about the examples ##
99
100In order to have a useful, functional example of time-series plots using time
101zones, date.js from [timezone-js][timezone-js] (released under the Apache 2.0
102license) and the [Olson][olson] time zone database (released to the public
103domain) have been included in the examples directory.  They are used in
104examples/axes-time-zones/index.html.
105
106
107[excanvas]: http://code.google.com/p/explorercanvas/
108[flashcanvas]: http://code.google.com/p/flashcanvas/
109[timezone-js]: https://github.com/mde/timezone-js
110[olson]: http://ftp.iana.org/time-zones
111