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
- JSON data from URL
- Highcharts - x-axis label disappears for polar chart with any endAngle
- HighStock: chart gets broken when navigator touches right border
- How to append dynamic values to the area chart in High charts or convert the data to arrays?
- How to call a function in kendo
- How to update Highchart from inside react a component?
- how to find title in highcarts
- JSON Data for Highcharts in Symfony2 with ObHighchartsBundle
- Highcharts pie with strokes
- Highcharts second series name labeled to 'Series 2'?
- HighCharts Bubble Chart: text for axis interval labels
- Modifying text in resetZoomButton doesn't work - highcharts
- Highcharts with data from sql database
- Highchart Pie Chart not working properly with series
- Charts,Server Side or Client Side?
- Escape c# class property from JSON serialization (to remove quotes)
- How to fix formatting of axis labels in Highcharts when surrounding the contents with div?
- HighMaps - need to make datalabels clickable
- Parallelcoordinates in R-highcharter R
- Bar chart data label and bar custom css with bar background,Highchart
- Highcharts update breaks previous layout
- Using Highcharts Export Server, how to include commas in labels?
- HighCharts Polar Labels in between of sectors of circle
- Highcharts speedometer gauge change label
- Testing Highcharts with selenium
- HighCharts not giving x-axis values as expected
- Format Highcharts xAxis for stock data
- Highcharts addSeries not showing line
- access svg element in a arearange HighCharts chart
- start at the same hour every day