Staticpage.
Text Formatted Code
<script type="text/javascript">
google.load("visualization", "1", { packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
[ "Element", "Price", { role: "style" }, { role: "annotation" } ],
[ "Average", [databox:math method:average type_id:1 templatesetvar:price category_code:type1102 round precision:0 numberformat:no], "#eeee66", '[databox:math method:average type_id:1 templatesetvar:price category_code:type1102 roundprecision:0 numberformat:yes permission:ignore] yen'],
[ "Max", [databox:math method:max type_id:1 templatesetvar:price category_code:type1102 roundprecision:0 numberformat:no], "#cccccc", '[databox:math method:max type_id:1 templatesetvar:price category_code:type1102 roundprecision:0 numberformat:yes permission:ignore] yen'],
[ "Low", [databox:math method:min type_id:1 templatesetvar:price category_code:type1102 roundprecision:0 numberformat:no], "#666666", '[databox:math method:min type_id:1 templatesetvar:price category_code:type1102 roundprecision:0 numberformat:yes permission:ignore] yen'],
]);
var view = new google.visualization.DataView(data);
view.setColumns([0, 1,
{ calc: "stringify",
sourceColumn: 1,
type: "string",
role: "annotation" },
2]);
var options = {
title: "Price",
width: 400,
height: 300,
bar: {groupWidth: "95%"},
legend: { position: "none" },
};
var chart = new google.visualization.BarChart(document.getElementById("barchart_values"));
chart.draw(view, options);
}
</script>
<div id="barchart_values" class="uk-container-center" style="margin:0 auto; "></div>