From cb2e3d2743c0f88b430f14b7a396aa1a583dc978 Mon Sep 17 00:00:00 2001 From: Igor Sfiligoi Date: Tue, 22 Mar 2011 07:30:12 -0400 Subject: flot-0.7 --- examples/ajax.html | 6 +- examples/annotating.html | 6 +- examples/basic.html | 6 +- examples/data-eu-gdp-growth-1.json | 4 +- examples/data-eu-gdp-growth-2.json | 4 +- examples/data-eu-gdp-growth-3.json | 4 +- examples/data-eu-gdp-growth-4.json | 4 +- examples/data-eu-gdp-growth-5.json | 4 +- examples/data-eu-gdp-growth.json | 4 +- examples/data-japan-gdp-growth.json | 4 +- examples/data-usa-gdp-growth.json | 4 +- examples/dual-axis.html | 39 -- examples/graph-types.html | 6 +- examples/image.html | 6 +- examples/index.html | 17 +- examples/interacting-axes.html | 97 +++++ examples/interacting.html | 10 +- examples/multiple-axes.html | 60 +++ examples/navigate.html | 8 +- examples/percentiles.html | 57 +++ examples/pie.html | 756 ++++++++++++++++++++++++++++++++++++ examples/realtime.html | 83 ++++ examples/resize.html | 61 +++ examples/selection.html | 10 +- examples/setting-options.html | 18 +- examples/stacking.html | 6 +- examples/symbols.html | 49 +++ examples/thresholding.html | 6 +- examples/time.html | 12 +- examples/tracking.html | 6 +- examples/turning-series.html | 6 +- examples/visitors.html | 6 +- examples/zooming.html | 14 +- 33 files changed, 1252 insertions(+), 131 deletions(-) delete mode 100644 examples/dual-axis.html create mode 100644 examples/interacting-axes.html create mode 100644 examples/multiple-axes.html create mode 100644 examples/percentiles.html create mode 100644 examples/pie.html create mode 100644 examples/realtime.html create mode 100644 examples/resize.html create mode 100644 examples/symbols.html (limited to 'examples') diff --git a/examples/ajax.html b/examples/ajax.html index 385a834..9b5ec85 100644 --- a/examples/ajax.html +++ b/examples/ajax.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -45,7 +45,7 @@

- @@ -19,7 +19,7 @@ manipulation, e.g. for labels. For drawing custom shapes there is also direct access to the canvas.

- @@ -19,7 +19,7 @@ plot function with the data. The axes are automatically scaled.

- - - - -

Flot Examples

- -
- -

Dual axis support showing the raw oil price in US $/barrel of - crude oil (left axis) vs. the exchange rate from US $ to € (right - axis).

- -

As illustrated, you can put in secondary y and x axes if you - need to. For each data series, simply specify the axis number.

- - - - diff --git a/examples/graph-types.html b/examples/graph-types.html index b3c3818..dd21a31 100644 --- a/examples/graph-types.html +++ b/examples/graph-types.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -17,7 +17,7 @@ combinations of these, in the same plot and even on the same data series.

- @@ -26,7 +26,7 @@ incomplete images). The plugin comes with a couple of helpers for doing that.

- - +

Flot Examples

@@ -17,27 +14,31 @@
  • Basic example
  • Different graph types
  • Setting various options and annotating a chart
  • -
  • Updating graphs with AJAX
  • +
  • Updating graphs with AJAX and real-time updates
  • Being interactive:

    -

    Some more esoteric features:

    +

    Various features:

    diff --git a/examples/interacting-axes.html b/examples/interacting-axes.html new file mode 100644 index 0000000..5b6e3bb --- /dev/null +++ b/examples/interacting-axes.html @@ -0,0 +1,97 @@ + + + + + Flot Examples + + + + + + +

    Flot Examples

    + +
    + +

    With multiple axes, you sometimes need to interact with them. A + simple way to do this is to draw the plot, deduce the axis + placements and insert a couple of divs on top to catch events. + Try clicking an axis.

    + +

    + + + + diff --git a/examples/interacting.html b/examples/interacting.html index fbf0390..d04eedd 100644 --- a/examples/interacting.html +++ b/examples/interacting.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -24,7 +24,7 @@

    Enable tooltip

    - + + + +

    Flot Examples

    + +
    + +

    Multiple axis support showing the raw oil price in US $/barrel of + crude oil vs. the exchange rate from US $ to €.

    + +

    As illustrated, you can put in multiple axes if you + need to. For each data series, simply specify the axis number. + In the options, you can then configure where you want the extra + axes to appear.

    + +

    Position axis or .

    + + + + diff --git a/examples/navigate.html b/examples/navigate.html index 78eff55..c916ef2 100644 --- a/examples/navigate.html +++ b/examples/navigate.html @@ -3,12 +3,12 @@ Flot Examples - - + + - + + +

    Flot Pie Examples

    + +

    Default with Legend

    +
    + + +

    Default without Legend

    +
    + + +

    Graph2

    +
    + + +

    Graph3

    +
    + + +

    Graph4

    +
    + + +

    Graph5

    +
    + + +

    Graph6

    +
    + + +

    Graph7

    +
    + + +

    Graph8

    +
    + + +

    Graph9

    +
    + + +

    Donut

    +
    + + +

    Interactive

    +
    + + +

    Pie Options

    + + +

    Changes/Features

    + + + + + + diff --git a/examples/realtime.html b/examples/realtime.html new file mode 100644 index 0000000..3b427e1 --- /dev/null +++ b/examples/realtime.html @@ -0,0 +1,83 @@ + + + + + Flot Examples + + + + + + +

    Flot Examples

    + +
    + +

    You can update a chart periodically to get a real-time effect + by using a timer to insert the new data in the plot and redraw it.

    + +

    Time between updates: milliseconds

    + + + + + diff --git a/examples/resize.html b/examples/resize.html new file mode 100644 index 0000000..d1e18c3 --- /dev/null +++ b/examples/resize.html @@ -0,0 +1,61 @@ + + + + + Flot Examples + + + + + + + + +

    Flot Examples

    + +
    + +

    + +

    Sometimes it makes more sense to just let the plot take up the + available space. In that case, we need to redraw the plot each + time the placeholder changes its size. If you include the resize + plugin, this is handled automatically.

    + +

    Try resizing the window.

    + + + + + + diff --git a/examples/selection.html b/examples/selection.html index 8b67a2b..1646f5a 100644 --- a/examples/selection.html +++ b/examples/selection.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -35,9 +35,9 @@ in the "plotselected" event triggered. Enable the checkbox below and select a region again.

    -

    Zoom to selection.

    +

    - diff --git a/examples/setting-options.html b/examples/setting-options.html index 6eb6ee9..8d1967e 100644 --- a/examples/setting-options.html +++ b/examples/setting-options.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -14,16 +14,12 @@

    There are plenty of options you can set to control the precise - looks of your plot. You can control the axes, the legend, the - default graph type, the look of grid, etc.

    + looks of your plot. You can control the ticks on the axes, the + legend, the graph type, etc. The idea is that Flot goes to great + lengths to provide sensible defaults so that you don't have to + customize much for a good result.

    -

    The idea is that Flot goes to great lengths to provide sensible - defaults which you can then customize as needed for your - particular application. If you've found a use case where the - defaults can be improved, please don't hesitate to give your - feedback.

    - - @@ -50,7 +50,7 @@ $(function () { $.plot($("#placeholder"), [ d1, d2, d3 ], { series: { stack: stack, - lines: { show: lines, steps: steps }, + lines: { show: lines, fill: true, steps: steps }, bars: { show: bars, barWidth: 0.6 } } }); diff --git a/examples/symbols.html b/examples/symbols.html new file mode 100644 index 0000000..e71b1aa --- /dev/null +++ b/examples/symbols.html @@ -0,0 +1,49 @@ + + + + + Flot Examples + + + + + + + +

    Flot Examples

    + +
    + +

    Various point types. Circles are built-in. For other + point types, you can define a little callback function to draw the + symbol; some common ones are available in the symbol plugin.

    + + + + + diff --git a/examples/thresholding.html b/examples/thresholding.html index 10b5b2a..f10144a 100644 --- a/examples/thresholding.html +++ b/examples/thresholding.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -25,7 +25,7 @@

    - @@ -48,8 +48,8 @@ $(function () { $.plot($("#placeholder"), [d], { xaxis: { mode: "time", - min: (new Date("1990/01/01")).getTime(), - max: (new Date("2000/01/01")).getTime() + min: (new Date(1990, 1, 1)).getTime(), + max: (new Date(2000, 1, 1)).getTime() } }); }); @@ -59,8 +59,8 @@ $(function () { xaxis: { mode: "time", minTickSize: [1, "month"], - min: (new Date("1999/01/01")).getTime(), - max: (new Date("2000/01/01")).getTime() + min: (new Date(1999, 1, 1)).getTime(), + max: (new Date(2000, 1, 1)).getTime() } }); }); diff --git a/examples/tracking.html b/examples/tracking.html index a0ad77d..c116159 100644 --- a/examples/tracking.html +++ b/examples/tracking.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -23,7 +23,7 @@

    - @@ -22,7 +22,7 @@

    Show:

    - @@ -50,7 +50,7 @@ $(function () { } var options = { - xaxis: { mode: "time" }, + xaxis: { mode: "time", tickLength: 5 }, selection: { mode: "x" }, grid: { markings: weekendAreas } }; diff --git a/examples/zooming.html b/examples/zooming.html index b485912..9a4ef22 100644 --- a/examples/zooming.html +++ b/examples/zooming.html @@ -3,8 +3,8 @@ Flot Examples - - + + @@ -16,16 +16,16 @@
    -
    +

    -

    The selection support makes - pretty advanced zooming schemes possible. With a few lines of code, - the small overview plot to the right has been connected to the large - plot. Try selecting a rectangle on either of them.

    +

    The selection support makes it easy to + construct flexible zooming schemes. With a few lines of code, the + small overview plot to the right has been connected to the large + plot. Try selecting a rectangle on either of them.