For definitive info about Open Flash Chart 2 library please see it's home page, it's tutorial page, it's charts types reference pages and it's properties reference pages.
You need to get Open Flash Chart SWF file as it's LGPL and so can't be included in this module release files. Download latest Open Flash Chart 2 release and dump the open-flash-chart.swf file into sites/all/modules/charts_graphs/apis/charts_graphs_open_flash.
The quickest code to get something graphed using Open Flash Chart 2:
<?php function charts_graphs_test() { $canvas = charts_graphs_get_graph('open-flash'); $canvas->title = 'Open Flash Chart 2 chart'; $canvas->type = 'line'; $canvas->y_legend = 'Y Legend'; $canvas->colour = '#808000'; $canvas->width = 700; $canvas->height = 300; $canvas->series = array( 'Some Value' => array(9,6,7,9,5,7,6,9,7), 'Page Views' => array(6,7,9,5,7,6,9,7,3), ); $canvas->x_labels = array('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'); $out = $canvas->get_chart(); return $out; }
Open Flash Chart 2 supports all main graph types but none standardized graph types. It also supports the following graph types:
Open Flash Chart 2 has no themes defined to be used with the theme property.
The examples below will only work if you have the Open Flash Chart 2 submodule configured correctly.