diff --git a/NEWS.txt b/NEWS.txt index 66ea834..128fe02 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -101,6 +101,7 @@ Changes: and hopefully makes replotting faster for those who are using $.plot instead of .setData()/.draw(). Also update jQuery to 1.5.1 to prevent IE leaks fixed in jQuery. +- New real-time line chart example. - New hooks: drawSeries, shutdown diff --git a/examples/index.html b/examples/index.html index e65c27c..f24f750 100644 --- a/examples/index.html +++ b/examples/index.html @@ -14,7 +14,7 @@
  • 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:

    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

    + + + + +