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 variable column size in bar highchart (Rshiny)
- Labels are not rendering for plotLines highcharts
- How to get the path element of hovered scatter point
- Possible to force Highcarts to use the circle symbol for all the series in a line graph?
- Highcharts - Sankey chart - How to display some series dataLabels name into icon or some different name
- highcharts 5.0.14 phantomjs issue with missing axis titles in exported image
- HighChart: Donut Pie with URL
- Implement chartit in Django 1.6 with Python 2.7 - TypeError: 'NoneType' has no attribute __getitem__
- Highcharts/Highstock DataGrouping & Approximation
- Highcharts - My nice thin cross hair changes to a thick green cross hair when adding categories
- Highstocks individual pane shadow
- Can I add an "average" line to Highcharts Chart?
- Label position between series in Highcharts polar chart
- How to get Pie Chart data to display using AppCoda example and iOS Charts?
- Highchart drilldown to simultaneous multiple series and y-axis
- Passing string data as categories to Highcharts
- Highchart: how to add commas to output to intergers
- Rails 4 + Filtration of Data on the basis of Day, Week, Month and Year in HighCharts
- How to move point's label and SVGs by moving a point graphic in highcharts gantt?
- How to use jspdf to print and download the multiple highcharts contents in pdf format
- error while installing highcharts in angular app
- defining highcharts in body
- Highcharts prevent column overlapping
- Add null values to Array Javascript
- How to set border for a highcharts pie?
- Same Highchart in different tabs not loading - Only first Tab loading
- Is there any way to highlight one particular series in highcharts?
- How to set opacity of a single bubble in Highcharts
- How to center line in ggplot2::geom_step() similar to highcharter
- Highcharts / Highstock scroll bar and Zoom issue