You are here

function statspro_get_pie_chart in Statistics Pro 6.2

Returns the HTML for one pie graph.

Parameters

<string> $title:

<array> $series:

<array> $x_labels:

Return value

<string>

2 calls to statspro_get_pie_chart()
statspro_get_path_aggregated_graphs in ./statspro_path_aggregated.inc
Returns the HTML for all path aggregated graphs.
theme_statspro_log in ./statspro_overview.inc

File

./statspro_graphs.inc, line 66
Graphs generation help.

Code

function statspro_get_pie_chart($title, $series, $x_labels) {
  $canvas = charts_graphs_get_graph(statspro_get_current_charting_option());
  $canvas->title = $title;
  $canvas->type = 'pie';
  $canvas->y_legend = 'Y Legend';
  $canvas->theme = '37signals';
  $canvas->width = 700;
  $canvas->height = 200;
  $canvas->series = $series;
  $canvas->x_labels = $x_labels;
  return "\n<div align='center'>\n" . $canvas
    ->get_chart() . "\n</div>\n";
}