For definitive info about Bluff library please see it's home page and it's reference page.
You should download Bluff library and grab following three javascript files:
and place them under sites/all/modules/charts_graphs/apis/charts_bluff/bluff folder.
The quickest code to get something graphed using bluff:
<?php function charts_graphs_test() { $canvas = chart_graphs_get_graph('bluff'); $canvas->title = "Bluff Chart"; $canvas->type = "line"; // a chart type supported by the charting engine. See further in the doc for the list. $canvas->y_legend = "Y Legend"; $canvas->colour = '#D54C78'; $canvas->theme = 'keynote'; $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; }
Bluff supports all main and standardized graph types, except the donut graph type. It also supports the following graph types:
Charts and Graphs supports the following special parameters for Bluff:
The Bluff charting library doesn't support the y_legend property.
The examples below will only work if you have the Bluff submodule configured correctly.