You are here

function _openflashchart_chart in Charts 7

Convert all Chart-level data.

Parameters

&$chart: Object. The Open Flash Chart object

&$data: Array. The raw data.

1 call to _openflashchart_chart()
_openflashchart_charts_render in openflashchart/openflashchart.inc
Implementation of hook_charts_render().

File

openflashchart/openflashchart.inc, line 16
@author Bruno Massa http://drupal.org/user/67164

Code

function _openflashchart_chart(&$chart, &$data) {
  $chart
    ->set_title($data['#title']);
  $chart
    ->set_width($data['#width']);
  $chart
    ->set_height($data['#height']);
  $chart
    ->set_bg_colour($data['#color']['#background']);
}