Drawing graphs has become simpler in Javascript, with the dygraphs Javascript Visualization Library.

This library will plot data supplied in CSV format using a line graph, using time as the x axis. This makes it very useful for drawing graphs of things such as temperature variance of a city throughout the year for example, or something like stocks or exchange rates.

Other features of the library include moving averages to flatten out spikes in the graph, as well as error bars.

But, best of all, the library is only a 45kB Javascript file, which must be included in the page, and a few lines of Javascript, and you got yourself a graph.

Share