Download & Extend

Include support for the Flot library

Project:Charts and Graphs
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:R.J. Steinert
Status:postponed
Issue tags:Sensor Hub

Issue Summary

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

#1

Yes, for sure.

A proper patch would speed this process a lot.

#2

Status:active» postponed

Postponing in case a patch is presented.

#3

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.

AttachmentSize
20110303-sensorhub-beta2-production.png 181.11 KB
views_charts.views_.inc-additionalValuesForFlot-869138-3.patch 1.18 KB

#4

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.

#5

Assigned to:Anonymous» R.J. Steinert
nobody click here