score:2
Accepted answer
There are a couple of ways to create a Highcharts/Highstock chart, but that is not one of them.
In short you could use .highcharts('StockChart', ...
instead of .highstock(...
.
Highstock stock chart
jQuery specific:
$('#output').highcharts('StockChart', {
// options
});
General:
new Highcharts.StockChart({
chart: {
renderTo: 'output'
}
// rest of options
});
Highcharts regular chart
jQuery specific:
$('#output').highcharts({
// options
});
General:
new Highcharts.Chart({
chart: {
renderTo: 'output'
}
// rest of options
});
I suggest reading up on the "Getting started" guide.
Source: stackoverflow.com
Related Query
- Unable to attach a highstock to a div
- Strange character in the Highstock source code
- Unable to change default rangeSelector Highstock
- HTML table as data source for highstock charts using highcharts
- Unable to set xAxis min for Highstock (Highcharts)
- upgrade to highstock 1.3.1 breaks resize code
- Unable to set colors in Highstock charts
- Unable to Dragend Navigator handles in HighStock
- HighCharts - Make the pie chart 100% of the div
- Highstock highcharts irregular data gets wrong x-scale
- Highcharts width exceeds container div on first load
- HighStock : Remove Zoom bar
- use highchart and highstock on the same page
- JavaScript - Export Div with SVG chart + HTML as and Image
- how can I move yAxis labels from Right of chart to left of chart in highstock
- Connecting NULL points in Highstock charts
- Trying to set a minimum height on bars in HighStock
- How to create a new Highstock chart with new Highchart and not jquery?
- Highstock Navigator always starts from 1970-1-1
- Highstock with numbers instead of date in x-axis
- Displaying multiple series in the navigator of an HighStock chart
- HighStock Charts not Working over SSL ie https
- Optimize JavaScript DrillDown code
- Highstock - irregular time interval
- How to get series's id in Highcharts / Highstock
- Server-Side HighStock charts generation with NodeJS
- highcharts, highstock without jQuery
- Highstock vs Google Charts in Performance
- how to change highstock date to persian date
- Highstock chart: navigator displays the wrong area in negative-color
More Query from same tag
- Step line in range selector with Highstock
- Issue with last column width in Highcharts
- Meteor + React + Highchart
- Dynamic position of tooltip in highcharts column charts
- addPoint with HIGHCHARTS (xAxis dateTime)
- Update series using Highcharts React wrapper
- Highcharts - combining column chart with scatter chart
- Highcharts error #13
- highchart autoupdate(addpoint) cause corrupted chart view
- Changing the color of the point dynamically in highcharts
- Draw dynamic rectangle based on date co-ordinates
- Query selector for the individual buttons in range selector
- Cannot read property 'info' of undefined
- High Charts show series maximums below chart
- Highcharts same legend color as of the Pie chart slice color?
- Thymeleaf: convert a list of objects to JSON when fields' name should contains a dash
- HighCharts inside of a javascript function
- Bubble chart :Cannot read property 'parts/Globals.js' of undefined
- How do I get x-axis to expand to take more of the chart width
- tooltip error only when highstock's point num > 10, why?
- MySQL date shown as year in Highstock
- How to dynamically invoke a highcharts menu item function?
- Add new data to a Highchart pie chart dynamically
- Smallest pie can't be seen in HighCharts
- Bug in Highcharts where negative numbers in data seem to cause bug with graph drawing
- Highcharts area charts with single data, not rendering
- Subtitle and title at bottom of highcharts
- Highstock - SMA (Simple moving average) dataGrouping not working
- Ruby on Rails: Passing string array to highchart function
- highcharts with scrollbar, how to display all items on download image?