Flot (http://code.google.com/p/flot/) allows beautiful and interactive graphs using JQuery.

There is http://drupal.org/project/flot which lacks much of the ease-of-use, maturity and activity of Charts and Graphs and Views Charts.

Is there a way to include support for Flot in Charts and Graphs?

Comments

rsevero’s picture

Yes, for sure.

A proper patch would speed this process a lot.

rsevero’s picture

Status: Active » Postponed

Postponing in case a patch is presented.

R.J. Steinert’s picture

https://github.com/rjstatic/drupal_charts_graphs_flot

Tada! :) The Charts Graphs Flot module. It's still pretty rough because I'm getting familiar with the charts_graphs framework but it's a start. I based it off of the Bluff charts module. There is only support for time plots at the moment. I've only tested it using the Views Charts module and to get that working it requires a patch I've also attached.

What I've done is a little special as it combines all of the $sets returned from grouping into one graph as opposed to separate graphs like the Charts Graphs Bluff module would do. See attached screenshot.

BTW, I rolled the patch using Benjamin Melançon's suggested method http://data.agaric.com/node/214
I also understand this is a patch for the a different module but I think it's more relevant to place it here right now.

R.J. Steinert’s picture

The Views Charts patch is no longer required for the Charts Graphs Flot module. Instead of using deductive reasoning to determine the which key is which axis as I did in the patch, I'm going with assuming we can depend on the order of the keys to be y, x, z https://github.com/rjstatic/drupal_charts_graphs_flot/blob/master/charts...

I'm not sure if this will always be the case though. More work to come.

R.J. Steinert’s picture

Assigned: Unassigned » R.J. Steinert
batje’s picture

Version: 6.x-2.x-dev » 7.x-2.0
Status: Postponed » Fixed

The D7 version now has flot support.

Status: Fixed » Closed (fixed)
Issue tags: -Sensor Hub

Automatically closed -- issue fixed for 2 weeks with no activity.