I have a website, on one page I have successfully added a high level.
now I copied exactly the same code to the same page, but on a different asp page, but the first diagram disappeared and the second diagram does not appear.
this gives me an error:
Uncaught Highcharts error
any ideas why i get this.
so my code for the new chart i want:
<script type="text/javascript" $(function () { $('#container').highcharts({ 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>
a working diagram has the following code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script> <script type="text/javascript"> $(function() { $('#container').highcharts({ chart: { type: 'column' }, title: { text: 'Chart' }, xAxis: { categories: array1 }, yAxis: { title: { text: 'aWH' } }, tooltip: { pointFormat: "Value: {point.y:.1f} mm" }, series: [{ name: '2011-2012', color: '#0000FF', data: array }, { name: '2012-2013', color: '#92D050', data: array3 }, { color: '#FF0000', name: '2013-2014', data: array2 }] }); }); </script>
The second graph is shown.
but the first chart doesnβt,
Both codes are on another acsx page!