score:4
Accepted answer
How about using simple chart.setSize(w,h)
? See docs.
$("#container").highcharts().setSize(800, height);
score:1
Just remove the width of the chart from
$('#container').highcharts({
chart: {
type: 'line',
width: 300
},
so that it is like this
$('#container').highcharts({
chart: {
type: 'line'
},
and set the container width to 300 like this
#container {
width: 300px;
}
then just resize the container div as you are already doing. the chart will resize according to the width of the container div.
hope this helps.
Source: stackoverflow.com
Related Query
- highcharts redraw and reflow not working
- Highcharts shared tooltip for line series and scatter plot not working
- angularjs and highcharts / highchartsNG - renderTo not working
- Highcharts and jquery-simple-slider seems to be not working together
- Highcharts - SetState (inactive) not working after redraw
- HighCharts not working on Safari but works fine on Firefox and Chrome
- Data and tooltip not working for graph using highcharts
- Buttons not working on subsequent tabs to redraw chart in Highcharts
- Highcharts - Axis minPadding and maxPadding not working
- Highcharts range selector buttons and input filter not working
- Highcharts Javascript - Synchronize Chart and Table not working - Cant read property cell of undefined
- Highcharts arearange draggableHigh and draggableLow not working
- Using Highcharts with minutes, seconds and milliseconds as Data not working
- Highcharts redraw not working with alignTicks
- HighCharts Map Point with lat and long is not working
- Highcharts (grouped_category styling) and tooltip formatter not working
- Dynamically changing Highcharts Theme through Jquery code not working
- Highcharts yAxis max not working
- Resize highcharts using react-grid-layout not working
- Angular HighCharts ParlimentChart is not working
- Highcharts - yAxis logarithmic scale and allowDecimals set to false not seeming to have any effect
- DataLabels formatter not working in Highcharts Sankey Diagram
- Highcharts async drilldown (3 level) - drillup not working
- Color contrast setting on dataLabels style parameter using Highcharts 5 is not working on some colors
- Highcharts reflow does not work on class selector
- Legend and Axis titles not showing in Highcharts Graph
- Legend and Axis titles not showing in Highcharts Graph
- Highcharts - Global configuration with common code and unique data & Headings
- JavaScript code inside TypeScript file .ts not working
- Highcharts - update column graph with setData() not working
More Query from same tag
- Setting Highcharts maximum Y value to an exact amount without rounding
- Not able to display highcharts in php
- Highcharts: Column and Bar Chart labels are incorrect when I drilldown
- Use High-charts, Open Flash Chart 2, Google Charts or what else !
- Genealogy Chart/Family Tree
- Updating Highcharts realtime using Socket.io
- DateTime whout seconds React highcharts
- Browser hanged while plotting more than 10000 series using Highcharts
- export csv from highcharts
- Symfony2 highcharts, change color
- Parse data from specified columns highcharts.js
- Highstock.js display incorrect value if more than 2000 points
- I am working on highcharts, and want to adjust tooltip with chart name ( chart title )
- Highcharts with sql server data
- highcharts highmaps parsing json data to display world map with rich info
- How to deal in Highcharts with special characters from CSV file?
- How can i get pie chart with dynamic json data in Angular js
- Update HighCharts every 5 seconds
- Chart Maximizing
- How show all tooltips split in graph with many series
- Combine two arrays in js or have highcharts working with other data format
- How to position datalabel at the base of bar series
- Are there better interface to add Highcharts support to Zeppelin
- HighChart response for time on yaxis and text on xaxis
- Highcharts Spiderweb chart xAxis labels disappear on long label name
- Highcharts- show all the days of the particular month
- HighCharts - setTitle() ignored when exporting chart
- How to force start on min/max and prevent automatic rounding
- Highcharts stacked column bar with line
- HighCharts - Make labels appear dynamically based on column size