You are here

function charts_chart in Charts 6

Same name and namespace in other branches
  1. 7 charts.module \charts_chart()

The main Chart API function, that calls any chart provider to print the given data.

Parameters

&$data: Array. The chart data, described on chart_api.txt

Return value

String. The HTML with the propper chart (might include Flash or JavaScript external files)

4 calls to charts_chart()
charts_plugin_style_chart::render in views/charts_plugin_style_chart.inc
Define and display a chart from the grouped values.
_charts_example in ./charts.admin.inc
Generate a generic chart example
_charts_system_generate in charts_system/charts_system.inc
Generate some charts using a pre defined method.
_charts_system_node_activity in charts_system/charts_system.inc
Show which kind of node type was created in the current month.

File

./charts.module, line 21
@author Bruno Massa http://drupal.org/user/67164

Code

function charts_chart(&$data) {
  module_load_include('inc', 'charts');
  return _charts_chart($data);
}