problem in chart.js

441
1
09-03-2020 05:59 PM
ManLi
by
New Contributor

hi, I am using JS API,

and i find some problem in <script src=" https://js.arcgis.com/4.16/"></script> with 

<script src="chart.js"></script>

how can i solve this problem?

thanks

Man

0 Kudos
1 Reply
HarishPalaniappan
New Contributor III

You are right.. the 2 libraries seem to conflict.

But see if this works for your needs (it worked for my chart example I tried).

 

Using the “defer” keyword to load ArcGIS JS at end of page load, by when the charts on the page are already loaded. The conflict with the libraries may create other problems – so it’s not a full resolution I guess.

 

<script src=" https://js.arcgis.com/4.16/" defer>