0
Visual Studio에서 Chart.js가 표시되지 않습니다. 그것은 왜 몰라요. 내가 숭고한 것으로 메모장에서 확인 했으므로 제대로 작동하고 있습니다. 하지만 비주얼 스튜디오 asp.net 플랫폼에서 작동하지 않습니다.Visual Studio에서 Chart.js가 표시되지 않습니다. 그것은 나타나지 않습니다
<!DOCTYPE HTML>
<html>
<head>
<script src="http://canvasjs.com/assets/script/canvasjs.min.js"></script>
<script type="text/javascript">
window.onload = function() {
var chart = new CanvasJS.Chart("chartContainer", {
theme: "theme2",//theme1
title:{
text: "Basic Column Chart - CanvasJS"
},
animationEnabled: false, // change to true
data: [
{
// Change type to "bar", "area", "spline", "pie",etc.
type: "column",
dataPoints: [
{ label: "apple", y: 10 },
{ label: "orange", y: 15 },
{ label: "banana", y: 25 },
{ label: "mango", y: 30 },
{ label: "grape", y: 28 }
]
}
]
});
chart.render();
}
</script>
</head>
<body>
<div id="chartContainer" style="height: 300px; width: 100%;"></div>
</body>
</html>