visualization.tpl.php in Visualization API 7
Template file returns HTML for Commerce Reports Visualization.
_attributes
1 theme call to visualization.tpl.php
- example_page in ./
visualization.api.php - Example page that demonstrates how to use the theme hook to visualize data using the Visualization API. You can also use the Views display plugin if you construct your data queries using Views.
File
theme/visualization.tpl.phpView source
<?php
/**
* @file
* Template file returns HTML for Commerce Reports Visualization.
*
* @param $chart
* @param $chart_attributes
*
* @return
* The chart div.
*/
?>
<div <?php
print $chart_attributes;
?>><?php
empty($chart) ? "" : $chart;
?></div>