You are here

function theme_charts_chart in Charts 7.2

Output the chart renderable as a string.

File

./charts.module, line 428
Provides elements for rendering charts and Views integration.

Code

function theme_charts_chart($variables) {
  $element = $variables['element'];
  $attributes = $element['#attributes'];
  $attributes['id'] = $element['#id'];
  $attributes['class'][] = 'chart';
  return '<div ' . drupal_attributes($attributes) . '>' . (isset($element['#chart']) ? $element['#chart'] : '') . '</div>';
}