My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 02, 2009 by fabien.m...@gmail.com
Labels: Featured
FAQ  
Flotr Frequently Asked Questions

Does Flotr support negative values?

Yes, it does. There’s an example of a graph with negative values.

Which browsers are supported?

Firefox 2+, Safari 3+, Chrome 1.0+ Opera 9+ and IE6+.

How can I save the graph as an image on IE?

This is simply impossible at the moment, because it is drawn through the ExCanvas library which generates vector graphics (VML), and we cannot retrieve these graphics as bitmap images in a simple way.

I found a bug, what can I do?

Don’t panic. First thing you do is try to fix it. Then, go to the Flotr Google Project page, and file a bug in the issue tracker.

Do you give support for Flotr?

We distribute Flotr ‘as is’, we do not get paid for it, but we will answer your questions. We only want you to read the docs and the FAQ before asking any question.

My question’s still not answered, how do I contact you?

We do not guarantee any support. But you could try to contact us by either using the contact form on our contact page, or post a message on the mailing list.


Comment by edward.newell, Mar 06, 2009

Hi Bas,

Just discovered your Flotr; its great.

I wanted to share my solution for plotting values vs the date (day of year). What I (and certainly many others) want to achieve is to show as ticks in the xaxis as the monthNames at the appropriate places. The options parameter you provide allows for this, with a little bit of preparation:

//assume that you have yourDataSeries, and that you found minDate and maxDate
var calendar = [[1,'January'], [32,'February'], [60,'March'], [91, 'April'], [121, 'May'], [152, 'June'], [182, 'July'], [213,'August'], [244,'September'], [274,'October'], [305, 'November'], [335, 'December']];

var ticks = [];
for(i=0; i<calendar.length; i++) {
  if(minDate <= calendar[i][0] && maxDate >= calendar[i][0])
    ticks.push(calendar[i]);
}

var options = {'xaxis':  {'ticks':  ticks}};
var graph = Flotr.draw($('graph'), aDataSeries, options);

Thanks, Edward

Comment by milaniliev, May 18, 2009

Edward,

Have you heard from Bas about incorporating this into the library? If not, I might try to create a patch and send it to him, if you don't mind.

Best, Milan


Sign in to add a comment
Hosted by Google Code