Reputation: 70
I just created a php
page with highcharts
. I followed the instructions on their site and ended up not working the charts. I don't know what is the reason why my chart isn't working. also about the Jq.js that is the jquery.js, I just renamed it.
<!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">
<div id="container" style="width:100%; height:400px;">asdf</div>
<div style="width:100%" >
<table class="tablename" border="2" style="margin: auto">
<tr style="font-size:30px">
<th>NCFS</th>
<th>NFCL</th>
<th>MICROTOP</th>
<th>SONION</th>
<th>ZAMA</th>
<th>TOYOTA</th>
</tr>
<tr><td>asdfasdf</td>
<td>asdfasdf</td>
<td>asdfasdf</td>
<td>asdfasdf</td>
<td>asdfasdf</td>
<td>asdfasdf</td>
</tr>
</table>
</div>
</div>
</center>
</body>
</html>
Upvotes: 0
Views: 62
Reputation: 2125
jq.js
is jquery library or not. If not then include jquery library
$('container')
should be $('#container')
Upvotes: 1