score:0
Why not use this:
var chartOptions = {
chart: {
renderTo: '[id of div]',
},
xAxis:{
},
...
series:{
},
};
var chartName = new Highcharts.chart({chartsOptions});
This should definitely work for you....just use chartName.setOptions() to set the size
score:1
You can still call chart = new Highcharts.StockChart(options)
to create charts.
However now $("#container").highcharts(options);
returns jQuery object, not Highcharts chart. To get chart from created id use: $("#container").highcharts();
(empty highcharts())
score:1
At the newest version you can still use first construction: http://jsfiddle.net/L6hpm/
chart = new Highcharts.StockChart({
chart:{
renderTo:'container'
},
I second solution you can use:
var chart = $('#container').highcharts();
chart.setSize(100,100);
Source: stackoverflow.com
Related Query
- upgrade to highstock 1.3.1 breaks resize code
- Strange character in the Highstock source code
- Highcharts / HighStock gapUnit breaks navigator
- HTML table as data source for highstock charts using highcharts
- Including source for Alchemy js breaks Highcharts js
- Responsive Highcharts not sizing correctly until window resize
- Highstock highcharts irregular data gets wrong x-scale
- Resize height with Highcharts
- HighStock : Remove Zoom bar
- Highcharts charts don't resize properly on window resize
- use highchart and highstock on the same page
- how can I move yAxis labels from Right of chart to left of chart in highstock
- Resize data points with highcharts
- Connecting NULL points in Highstock charts
- Highcharts does not resize charts inside tabs
- Highcharts: Chart does not resize properly by making the screen smaller
- 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
- Resize highcharts using react-grid-layout not working
- 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
More Query from same tag
- Highchart - Column range as arrows
- Highcharts, changing legend icon to represent image
- Howto move dataLabels to the border of the plot area?
- How can I add customized y axis in highchart basic bar?
- Loading Highcharts from MySQL using Java
- How to position axis label in highcharts
- Click event on clicking on the graph
- print a value on highcharts bar graph?
- How to change the theme of a Highstock graph with a button?
- Remove shadow/background glow on highcharts data label?
- How to prevent my stacked series from being in reverse order?
- Show symbol in legend
- Highchart: how to add commas to output to intergers
- highstock. Don't update navigator series visibility
- How to avoid X axis to display decimal values
- What are the plotX, plotY values of a point in HighCharts?
- set data for navigation in highstock
- Highcharts equivalent of this Raphael.js chart demo -- possible?
- highstock ie8 error
- How can I get highstock zoom infomation?
- Highcharts update xAxis category when calling series.setData
- Highcharts histogram - use cumulative column percentages to plot Spline
- highcharts large heat map drilldwon
- Highcharts - How can I remove starting and ending padding from area chart
- Does manipulating a hidden DOM element affect performance?
- Add a bar independent of categories ("reference" bar)
- Tooltip is visible on the whilte area as well in lat-lon mappoint Highmaps
- Highcharts renderTo container not found (error 13)
- Send variables from Symfony2 PHP file to js file
- Highstock - SMA (Simple moving average) dataGrouping not working