私はHTMLとPHPで新しいです。私はHighcharts.comのGetting Startedガイドに従っており、私は以下のHTMLファイルを書いています。 index2.htmのように保存しますが、「スクリプトの前に...」と表示され、グラフは表示されません。
私を助けてください。 どうもありがとうシンプルなハイチャートだが実行されない
<DOCTYPE HTML>
<html>
<head>
<script src="http://code.highcharts.com/highcharts.js"></script>
<title>Highcharts Example</title>
</head>
<body>
<div id="container" style="width:100%; height:400px;"></div>
<p>Before the script...</p>
<script>
$(function() {
var myChart = Highcharts.chart('container', {
chart: {
type: 'bar'
},
title: {
text: 'Fruit Consumption'
},
xAxis: {
categories: ['Apples', 'Bananas', 'Oranges']
},
yAxis: {
title: {
text: 'Fruit eaten'
}
},
series: [{
name: 'Jane',
data: [1, 0, 4]
},
{
name: 'John',
data: [5, 7, 19]
}]
});
});
</script>
</body>
</html>
</pre>
をコンソールにエラーがありますか? – wergeld