Source

mustachebox / mustachebox / templates / mustachebox / tags / columnchart.html

Full commit
<script type="text/javascript"
    src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="{{STATIC_URL}}js/google_base.js"></script>
<script type="text/javascript" src="{{STATIC_URL}}js/time_serie.js"></script>
<script type="text/javascript">

google.load('visualization', '1.0', {'packages':['corechart']});
google.setOnLoadCallback(configureChart);

var data = {% autoescape off %}{{object.data}}{% endautoescape %}
  if(data.elem == undefined){
      data.elem = "column_chart_div"
  };

function configureChart() {
  // configure the graph and render it
  var chart = new google.visualization.ColumnChart(
      document.getElementById(data.elem)
  );
  drawChart(chart, data.data, null)
}



</script>
<div id="column_chart_div" style="width: 300px; height: 200px;">
</div>