Raphy Charts을 계속 사용하려고하는데 "TypeError : 'null'이 (a.style '을 평가하는) 개체가 아닙니다. raphy-chart.min.js : 31 : 452Raphy Charts - TypeError
<!DOCTYPE HTML>
<html>
<head>
<script type='text/javascript' src='vendor/js/jquery.min.js'></script>
<script type='text/javascript' src='vendor/js/raphael.min.js'></script>
<script type='text/javascript' src='vendor/js/raphy-charts.min.js'></script>
<script>
var progress1 = new Charts.CircleProgress('progress-1', 'Sales', 80,
{
font_color: "#fff",
fill_color: "#222",
label_color: "#333",
text_shadow: "rgba(0,0,0,.4)",
stroke_color: "#6a329e"
});
progress1.draw()
</script>
</head>
<body>
<div id='progress-1' style='width: 300px; height: 100px;'></div>
</body>
</html>
가 사전에 감사합니다 "
이 코드 (on Github)입니다!
으로 변경 : 시도한 후 div로 이동하십시오. ID를 참조하기 때문에 도움이 될 수 있습니다. progres-1 –
감사합니다. Anto. 내가 아래에 설명했던대로 도움이되었습니다. –
당신은 오신 것을 환영합니다. –