For definitive info about amCharts library please see it's home page and it's reference page.
You need to download amCharts files. Specifically Column & Bar, Line & Area, Pie & Donut zip files.
Unfortunately amCharts ships as several zips with sophisticated folder structure in each one of them. You need to hunt down the following files:
Download and place them in the downloaded folder of the module, directly, without any folder structure inside the downloaded folder.
amCharts implementation for Charts and Graphs dependends on the SWFTools module.
At this point, you should be able to start using AmCharts, but it is highly recommended that you complete following three steps as well:
The quickest code to get something graphed using AmCharts:
<?php function charts_graphs_test() { $canvas = chart_graphs_get_graph('amcharts'); $canvas->title = 'AmCharts Chart'; $canvas->type = 'line'; $canvas->y_legend = 'Y Legend'; $canvas->colour = '#808000'; $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; }
amCharts supports all main and standardized graph types. It also supports the following graph types:
The examples below will only work if you have the amCharts submodule configured correctly.