[Chartjs]-Visual Studio 2013 IIS web site โ€“ problems with JS files

1๐Ÿ‘

โœ…

You are using old library loader code you need to update your loader code or load both the old library loader and the new library loader.

Limitations: For Geochart and Map Chart, you must load both the old library loader
and the new library loader.

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>

Your code should look like below

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>// Old Library Loader
<script type="text/javascript" src="https://www.google.com/jsapi"></script>

<script type="text/javascript">
    google.load('visualization', '1', { packages: ['corechart', 'bar', 'table', 'controls'] });
</script>

Check Google documntation to Update Library Loader Code

Leave a comment