For definitive info about Open Charts Flash 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 don't necessarily need to download Open Flash Charts 2 SWF file, since the package is LGPL, it can be packaged with the module, and is included in the corresponding sub-module's download. If you still want to download it yourself or need to update a version, download latest OpenFlashCharts2 swf file and dump it into sites/all/modules/charts_graphs/charts_openflash.
The quickest code to get something graphed using OpenFlashCharts2:
<?php function charts_graphs_test() { $canvas = chart_graphs_get_graph('open-flash'); $canvas->title = 'OpenFlashCharts 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 Charts Flash 2 supports all main graph types but none standardized graph types. It also supports the following graph types:
The examples below will only work if you have the Open Charts Flash 2 submodule configured correctly.