www.chartjs.orgChart.js を使用しようとしたら、
Failed to create chart: can't acquire context from the given item
描画の為の
<script src="Chart.bundle.js"></script> </head> <body> <canvas id="myChart"></canvas> <script type="text/javascript"> // ここで、canvas id="myChart" に対する Chart.js の処理を書く。 var ctx = document.getElementById("myChart").getContext('2d'); var myChart = new Chart(ctx, { type: 'bar', data: { : : </script>
必要な Chart.bundle.js は、https://github.com/chartjs から、Chart.js を辿って、
https://github.com/chartjs/Chart.js/releases から入手する。