Sunday, May 17, 2009

Flot Test 2

Simple example. You don't need to specify much to get an attractive look. Put in a placeholder, make sure you set its dimensions (otherwise the plot library will barf) and call the plot function with the data. The axes are automatically scaled.

One of the goals of Flot is to support user interactions. Try pointing and clicking on the points.

Mouse hovers at (0, 0).

A tooltip is easy to build with a bit of jQuery code and the data returned from the plot.

Enable tooltip

No comments: