score:43
Chart's width is taken from jQuery.width(container)
, so if you have chart in some hidden tabs or something similar, width will be undefined. In that case default width and height are set (600x400).
score:26
I know this is an old question, but I ran into the exact same issue and found another solution that works great.
As of Highcharts 4.1.5 (could be in older versions as well), the chart
object has a reflow()
function. View the documentation here.
reflow ()
Reflows the chart to its container. By default, the chart reflows automatically to its container following a window.resize event, as per the chart.reflow option. However, there are no reliable events for div resize, so if the container is resized without a window resize event, this must be called explicitly.
Hope it helps someone else.
Source: stackoverflow.com
Related Query
- Highcharts - issue about full chart width
- HighCharts full width issue
- Highcharts chart width issue on lazy loading of stylesheet
- Highcharts cloud issue with data source when duplicating chart
- Highcharts error 19 issue when adjusting container width that chart displays in
- Highcharts Pie Chart ignores percentageDecimals tooltip setting and has floating point inaccuracy issue
- Issue Dynamically Changing HighCharts Chart Title
- Exporting HighCharts chart specific height width
- Highcharts - Bar - Setting the X axis width and the chart area width to be constant
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- Highcharts legend title border not full width
- Issue in width of the chart
- HighCharts Stock Chart error code 18
- Hide Data Labels in Pie Chart below 400px width - Highcharts
- Highcharts bubble chart datalabels color contrast issue
- Highstocks chart multiple pane width and y axis alignment issue
- Extending Area to full width of Chart with Months on x-axis
- highcharts IE8 redraw chart issue
- Why do I have the issue 'property assigment expected' when I want to display a chart on my web page using highcharts
- Highcharts - Gantt Chart plot issue
- highcharts scale chart to width
- xaxis range won't take chart's full width in area-colums combined chart
- Highcharts chart width to dispay size dynamically
- High chart width issue
- Highcharts legend spread out to full width
- Highcharts - Is there a chart similar to full donut
- Issue with last column width in Highcharts
- Highcharts GANTT Chart Tooltip Mouse-over Tracking Issue
- Highcharts - Issue with the chart reflow function
- Highcharts display label for pie chart using html table as data source
More Query from same tag
- Show context menu on right click High-chart v3.0.10
- Can't set title of highchart through @input
- Can we Extend Highstocks features to Highcharts?
- Highcharts column color
- Remove exporting button from HighChart Objective-C
- Customizing date in tooltip when datgrouping enabled
- Highcharts arearange graph not respecting “connectEnds” option
- highcharts is not showing
- Highchart from select rows in HTML table
- Vuejs Data Update
- How to fetch data into highchart in react app
- highcharts export server js script error codes
- Highcharts Annotation Position/Top Is Incorrect Upon Initial Rendering
- Chart is recreated using the old data
- Change color of stacked bar chart
- R - leaflet - highcharter tooltip
- Is there a way to create Chord Diagram using Highcharts
- Highcharts: Updating a Pie Chart with setData()
- Passing dynamic php values for Highchart graphs
- Highchart Pattern fill
- Highstock disable tooltip for one series
- Tooltip for whole stack in grouped stacked Highcharts diagram
- Set color of highcharts renderer path title
- How to draw single line graph using Highchart bullet graph?
- How to change the chart title dynamically on tooltip hover in the points Highcharts.. React JS
- Highcharts {Pie} - Remove slice pieces out onclick
- Two columns with two legend items in highchars.js
- Plot Bar chart and Line series chart on separate x-axis in Highcharts out of common dataset
- How could I change the x,y label and remove empty x bar
- Onclick redraw the chart with new values in bar chart