views:

1450

answers:

2

I'm hoping to add events to some Google Flot charts, like those seen in Google Finance. After searching some, it looks like someone has started this and has posted a couple images at http://code.google.com/p/flot/wiki/FlotUsage. I can't find any Flot plugins that can do this.

Does anyone know of a Flot plugin or example so I can make sure not to re-invent any wheels?

A: 

Here are some examples I found, it's on the homepage of the link you posted:

http://people.iola.dk/olau/flot/examples/

Luca Matteis
Yeah I searched the examples, but it looks like none of them reference this kind of functionality
Eric Wendelin
the link provided does have an example with any 'markings'
emeraldjava
+3  A: 

The current release (0.5) can't do this, but if you pull the latest version from "trunk" it can. Just look for something called "markings" in the API doc: http://code.google.com/p/flot/source/browse/trunk/API.txt

I use the markings feature to draw a vertical line on a day when something happened. For example, you could draw vertical lines on the days you shipped a new piece of software on a chart that contains website traffic metrics.

Jon Tackabury
Aha! So I can use the markings property. Thank you!
Eric Wendelin
I was just wondering how I could add markers for specific days in my chart. I had decided on simply ploting them as [date, chartmax] so it would plot a vertical line and I could tag it by using the legend.
Anthony