visualization.html.twig in Visualization API 8
Template file returns HTML for Commerce Reports Visualization.
_attributes
1 theme call to visualization.html.twig
- 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
templates/visualization.html.twigView source
- {#
-
- /**
- * @file
- * Template file returns HTML for Commerce Reports Visualization.
- *
- * @param $chart
- * @param $chart_attributes
- *
- * @return
- * The chart div.
- */
-
- #}
- <div {{ chart_attributes }}>{{ chart }}</div>