Hi,
I have downloaded https://www.gstatic.com/charts/loader.js in my project as
lib file to avoid calling JS script dynamically on the fly.
I used below code to generate timeline visualization,
<script type="text/javascript" src="../lib/loader.js"></script> -- (static
lib folder path in my src code)
<script>
google.charts.load('1.1', {packages: ['timeline']});
google.charts.setOnLoadCallback(drawChart);
</script>
But in console, I am getting Bad version error.
Uncaught (in promise) Error: Bad version: 1.1
at loader.js:133
When I use below code, it works perfectly.
<script *src="https://www.gstatic.com/charts/loader.js"*></script>
<script>
google.charts.load('current', {packages: ['timeline']});
google.charts.setOnLoadCallback(drawChart);
</script>
Please let me know how to resolve this.
Thanks,
Shyam
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/8727abca-e4a0-4d54-99bf-635b87e2554an%40googlegroups.com.