Я только что создал страницу php
с highcharts
. Я следил за инструкциями на своем сайте и в итоге не работал с графиками. Я не знаю, в чем причина, почему мой график не работает. также о Jq.js, который является jquery.js, я просто переименовал его.HighCharts не работает
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="jschart/jq.js"></script>
<script src="jschart/jschart.js"></script>
<script src="jschart/esporting.js"></script>
<script type="text/javascript">
$(function() {
$('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, 3]
}]
});
});
</script>
</head>
<body background="http://www.footpatrol.co.uk/templates/footpatrol.co.uk/_images//blog/_2013/adidas-Rick-Owens-Tech-Runner/adidas-Rick-Owens-Tech-Runner-10.jpg" >
<div id ="content">
\t <div id="container" style="width:100%; height:400px;">asdf</div>
\t <div style="width:100%" >
\t \t <table class="tablename" border="2" style="margin: auto">
\t \t <tr style="font-size:30px">
\t \t \t <th>NCFS</th>
\t \t \t <th>NFCL</th>
\t \t \t <th>MICROTOP</th>
\t \t \t <th>SONION</th>
\t \t \t <th>ZAMA</th>
\t \t \t <th>TOYOTA</th>
\t \t </tr>
\t \t <tr><td>asdfasdf</td>
\t \t \t <td>asdfasdf</td>
\t \t \t <td>asdfasdf</td>
\t \t \t <td>asdfasdf</td>
\t \t \t <td>asdfasdf</td>
\t \t \t <td>asdfasdf</td>
\t \t </tr>
\t \t </table>
\t </div>
</div>
\t
\t
</center>
</body>
</html>
Вы проверили консоль? –
у вас отсутствует хэш, должен быть '$ ('# container') ({' ... – Laazo
ohhh ill checked –