Trying to use Google's
preferred way of loading chart libraries
.
My problem is I can't get the new way to work on LimeSurvey.
Old Load (note: code I found on LS forum uses this method):
<script type="text/javascript" src="
www.google.com/jsapi
">
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
</script>
New Load (I assume new method works on LS):
<script type="text/javascript" src="
www.gstatic.com/charts/loader.js
">
<script type="text/javascript">
google.charts.load('current', {packages: });
google.charts.setOnLoadCallback(drawChart);
</script>
I have attached files for generating a PieChart using the Old and New method (files are only a few lines each).
The Old way works but the new way does not show anything on the Display Text question.