maani.us swf graphs

Events happening in the community are now at Drupal community events on www.drupal.org.
sime's picture

I was reminded in IRC about the graphing tool, which is free to use non-commercially.
http://www.maani.us/charts/index.php?menu=Gallery

Seems a good candidate for a drupal module. Mainly I'm posting this to not forget the link again.

Comments

BTW

dmitrig01's picture

I actually happen to know the author of these things, although it would be hard to get in contact him. He lives in a very, very remote area. And, the license is not... GPL. It actually costs quite a bit of money.

You certainly wouldn't

sime's picture

You certainly wouldn't commit the flash grapher. A drupal module would simply handle the integration. I'm considering putting it in SWF Tools, but I'd have to look much more closely at how you use it.

swfcharts module exists now

harry slaughter's picture

see http://drupal.org/project/swfcharts

yes, this thing is not GPL, but it fits the bill in many ways for a lightweight, pretty graphing solution for drupal.

--
Drupal tips, tricks and services
http://devbee.com/ - Effective Drupal

--
Drupal tips, tricks and services
http://devbee.net/ - Effective Drupal

Cool! That looks pretty

sime's picture

Cool! That looks pretty straight-forward.

That _swfcharts_test_chart() has a sample dataset:

<?php
  $chart
['chart_data'] = array (
    array (
"",         "2001", "2002", "2003", "2004" ),
    array (
"Region A",     5,     10,     30,     63  ),
    array (
"Region B",   100,     20,     65,     55  ),
    array (
"Region C",    56,     21,      5,     90  )
  );
?>

Is that the standard dataset format for all chart types?

The API is fully documented

harry slaughter's picture

The API is fully documented here: http://www.maani.us/charts/index.php?menu=Reference

I also have a simple example here: http://devbee.com/modules/swfcharts

--
Drupal tips, tricks and services
http://devbee.com/ - Effective Drupal

--
Drupal tips, tricks and services
http://devbee.net/ - Effective Drupal

I just noticed something

sime's picture

I just noticed something rather interesting.
http://www.maani.us/charts/index.php?menu=Reference&submenu=draw
This makes maani swf a potentential output for the SoC drawing api. In the very least it's an example of a working data structure.

Harry, the only thing other thing I want to mention is that I am developing SWF Tools as an API for all flash projects. The advantage for swfchart is that you wouldn't have to worry about javascript embedding techniques like SWFObject. There are other advantages, but not really applicable to swfcharts, since your module will be quite heavy on the settings and data processing side. SWF Tools is mostly aimed at eliminating modules which implement new MP3 and media players (these modules are usually not much more than embedding).

Still, it's worth noting, if you see the benefit of integrating at any stage, let me know and I'll write up a patch on swfcharts.

And, of course, thanks for doing this module, it's something I've wanted to do for a while.

Graphing & SVG

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: