Charting over time (flotJS)
One of the more impressive features of this library is the ease with which one can update the chart information. It's very easy to see from the first moment when you review this library and its samples that the author loves math and loves charting. My favorite feature is the way the chart can update its x ranges dynamically based on the input added into it.
My second favorite feature is how easy it is to update the chart text info by using a tickFormater
method:
Getting ready
To get the latest builds of the
flotJS
library, please visit our link hub at http://blog.everythingfla.com/?p=339 for charting open source libraries or download our book's source files where we include the latest build as of publication at http://02geek.com/books/html5-graphics-and-data-visualization-cookbook.htm.
How to do it...
Let's create our HTML and JavaScript files:
Create an HTML file:
<!DOCTYPE html> <html> <head> <title>flot</title> <meta charset...