score:6
Accepted answer
First solution:
I had same error, i used highchart
as below in my HTML
code:
<head>
<script src="https://code.highcharts.com/highcharts.js"></script>
...
</head>
and my js
code was:
$('#container').highcharts('StockChart', {
...
});
with respect to highchart documention
, we must use Highcharts.Chart
to create new highstock
.
so i changed my code to:
<head>
<script src="https://code.highcharts.com/highcharts.js"></script>
...
</head>
and my js
code was:
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
...
});
and this error has been resolved!
Second solution:
also with respect to this documentation, if you are running Chart and StockChart in combination, you only need to load the highstock.js file.
so changed my code to:
<head>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
...
</head>
and my js
code was:
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
...
});
score:0
This worked for me
<script src="../lib/highcharts.js"/>
<script src="../lib/highcharts-more.js"/>
var chart = new Highcharts.Chart({
chart: {
renderTo: 'Temperature'
},
title: {
text: 'HighStock'
},
legend: {
enabled: true
},
xAxis: {
categories: ['1','2','3','4'],
title: {
text: 'day'
}
},
yAxis: {
title: {
text: 'values'
}
},
series: [{
name: 'temperature',
data: [
[5,30],[10,35],[15,40],[20,45]
],
}]
});
Source: stackoverflow.com
Related Query
- Strange character in the Highstock source code
- Highstock giving error 15
- How to set the x value for High Charts error bar
- Difference between highcharts and highstock during real time trace and xAxis with max value
- HighCharts Stock Chart error code 18
- How do I prevent Highstock right range handle keep slipping off the max value when adding data
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Uncaught Highcharts error #19: www.highcharts.com/errors/19
- Highstock - "destroy is not a function" error
- Change color code on colum, depending on data value (highchartJS)
- Getting weird error message from Highstock / Highcharts
- Error in highstock chart. Data is undefined in tooltip
- Display threshold line even if threshold value is higher than max y-axis value in HighStock
- Uncaught TypeError: Cannot read property 'addPoint' of undefined ( Highstock live data)
- Highstock different time value interval
- Highstock charts give "Uncaught TypeError: Cannot read property 'addPoint' of undefined" error
- Highstock Not showing max data value without Zoom
- highstock ie8 error
- highstock ie8 error
- I am facing this error highcharts.js:formatted:1 Uncaught ReferenceError: Highcharts is not defined can any one help me with this
- HTML table as data source for highstock charts using highcharts
- Uncaught TypeError adding chart in markdown using Jekyll
- Error on rendering Highstock date
- Uncaught TypeError: Cannot read property '0' of undefined javascript error and with highcharts
- How to group area chart extremes for x-axis dynamically with day,week,months value in highstock
- Get x value of highstock navigator handle when mouseup occurs
- Highchart redraw is throwing error Uncaught TypeError: Cannot read property 'length' of undefined(…)
- Highstock : Yaxis last horizontal label value not showing
- Highchart's error : Uncaught SyntaxError: Unexpected token for
- Highcharts/Highmaps Uncaught TypeError: Cannot read property '0' of undefined error
More Query from same tag
- Framework for a Business Dashboard - MVC, browser accessible
- highcharts, toggle a category?
- Create Histogram with bellcurbe with in the same chart Highcharts
- What would be an alternative to running Twig for loop inside javascript?
- Highcharts - set maximum range for yAxis but keep axis dynamic within that range
- HighCharts: Update the series name label dynamically
- add border color and width to 3d bar highcharts
- Highcharts - show only years in xAxis
- Highstock set XAxis extreme without data
- JS HighCharts.js Pie data undefined error in code
- Redraw same highchart
- HighChart Columnrange to combine with a LINE?
- IE only loads remotely hosted .js files
- highcharter: how can I customize the labels on a column plot
- Highcharts export chart along with outer div
- highstock.js date ranges less then a hour don't work
- How to remove margin from gauge chart in Highcharts?
- How to create highcharts maps using Angularjs?
- Yii2 - Connect to database inside Controller Action
- Highcharts bar data labels position
- Highcharts histogram merges last and second last column together
- Highcharts how to draw dual axis negative stack bar?
- Error in render: "TypeError: Cannot read property 'seriesNames' of undefined"
- Highcharts large treemap How do I get the clicked node data?
- Highcharts: Dynamically change / add axis attributes
- How can I change the distance between columns in highcharts?
- What is this Highstocks UI element, and can it be controlled independently of the tooltip?
- Is it possible to get highcharts range selector to work with jQuery timepicker, like it works with jQuery datepicker?
- High charts undefined value on customizing tool tip - Unable to get the ID from array
- How to set the dynamic value from a text box to the graph using Highcharts?