I am trying to load a graph in AmCharts
.
The problem is that the JavaScript script is loaded before I get the service return, it starts empty and I can not update the variable.
Any idea how to do this?
<script type="text/javascript">
AmCharts.makeChart("chartdiv", {{json}} );
</script>