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
- AngularJS Directive Applying Wrong Data
- HighCharts : Highlight entire series when hover and restore state when out
- how to create highcharts using data.csv file
- Vue.js - Highmaps - Redraw map on series change
- Highcharts Angular - Sunburst implementation
- Odd animation with multiple series
- Laravel 5.5 Console TV Bar Chart High Charts multipleDatasets and label
- highchart treemap in R with more then 2 drilldowns makes a incorrectly nested map
- Background image isn't appearing in Highcharts
- Highchart series style on button click
- Adding highcharts to existing project got unknow problem
- How to change the colour of inactive bars in Highcharts?
- javascript highcharts jQuery issue
- Using Highcharts JS in native mobile application
- Strange behavior of Highchart tool tip
- How do I get data from a RESTful API JSON response in React?
- Number of legends per page on pagination in Highcharts
- Highcharts Navigator shows datetime in milliseconds
- How to dynamically set title in Pie Chart of Highcharts
- Stockcharts - Adding an offset to avoid drawing points at the edge
- How we can format the box size of timeline highchart
- Change the color of the bar chart based on the value
- Hover entire container contents with an Overlay
- How can I align gridlines with dots in Highcharts
- Highcharts fadeIn produces plots larger than containers
- Highcharts: converting millimeters to pixel
- Full width arearange
- Use RangeSelector in Highcharts without Date
- highcharts-react-native not working in iOS binary (.ipa)
- Highcharts 4.1.1 adding a severe drop shadow to data labels if you specify a font color