Chart.js requires jQuery-2.1.3, but bootstrap3 requires jQuery-1.11.3
I wrote in HTML Head tags as below, but not works.
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="./dist/Chart.min.js"></script>
How should I include jQuery files?
Chart.js
does not require jQuery. While you can actually pass a jQuery object (and this can be from jQuery
v1 or v2) in place of ctx
while initializing the chart, you can just as easily pass in the DOM element or the 2D context.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.