score:8
Finally I have find a solution, using the method "container":
$(chart.container).width()
This returns the current width of the chart.
score:0
This is an old question so my answer is just to provide more options for those who are checking this later.
If you want full width of chart:
this.chart.chartWidth
If you want the chart xAxis width, without possible labels on the left (check image), you have two options:
this.chart.plotWidth // or
this.chart.xAxis[0].width
score:3
You could use the xAxis extreme.max and translate it to pixels. Something like (not tested):
Chart.xaxis[0].toPixels( chart xaxis[0].getExtremes().max )
It feels like there should be an easier way, but I guess I would have used the containing div width. Maybe you could use chart options to get the containing div I'd and get the width from that.
score:18
In chart object you have access to chartWidth parameter, which keeps width of chart.
//callback
function(chart){
console.log(chart.chartWidth);
}
Source: stackoverflow.com
Related Query
- Get Highcharts width
- How to get current width of highcharts column
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- How to get highcharts dates in the x axis?
- How can I get access to a Highcharts chart through a DOM-Container?
- Highcharts - issue about full chart width
- Highcharts width exceeds container div on first load
- Maximum bar width in Highcharts column charts
- Highcharts - Hidden charts don't get re-size properly
- HighCharts full width issue
- Fixed y-axis label width in Highcharts
- How to get Highcharts X-Axis Categories starting at the left most point
- Get Highcharts Series Data after Load
- Hiding _groups_ of series in Highcharts and jQuery: how to get acceptable performance?
- how do I get two highcharts on one page?
- Highcharts Pie charts get the selected pie id
- Highcharts Solid Gauge Width
- How to get rangeSelector to work with HighCharts
- set width of chart, highcharts
- How to get series's id in Highcharts / Highstock
- How do I get the value of a highcharts graph point on mouseover?
- How to get an image watermark in HighCharts charts?
- Stop HighCharts increasing width of line on hover
- How to get multiple data series into Highcharts
- Highcharts - How to get a value of a stack in a series?
- how to get chart object inside a point event function in Highcharts
- Column width in Highcharts when combined with spline
- Get a reference to a Highcharts chart
- Highcharts - get visible series name dynamically
- Highcharts spans beyond bootstrap column width when implemented as an angular directive
More Query from same tag
- Javascript basic issue regarding passing parameters
- Why are the labels for my opposite yaxis in Highcharts not showing up?
- Fixed padding in callout box of timeline chart
- Updating highcharts.js data on a 'stacked columns' chart : update() or setData()?
- How to provide styles on X axis gantt high chart
- Equivalent of highcharts map with {highcharter}
- DataLabels in R highcharter cannot be seen after print as png or jpg
- Why does highcharts not accept an array for second y axis?
- Highcharts plotLines with multiple xAxis and yAxis
- rerender view when model property change in EmberJS
- AngularJS $resource caching with deferreds
- Not able to getting highcharts legend label in order
- Highcharts showing image in tooltip and get column index
- Highcharts GANTT Chart Tooltip Mouse-over Tracking Issue
- Costumize indicators from stock tools
- Cannot connect distinct highcharts points
- Hiding a Highcharts series without using the legend
- Highchart xAxis "6 Hours Ago" ,"5 Hours ago" and so on. while my chart is updating
- How to make graph with 4 Y axis
- Highchart - Chart type, gap in the x and y axis (0,0)
- Highcharts: setSize on each Multiple chart
- calculate the difference between 2 series in tooltip for highstock
- Adding narrative to pie chart (highcharts)
- HighCharts: Labels visible over tooltip frame
- How to set a different border line of every single point or serie in Highcharts scatter plot?
- Lazy_high_chart: why options.xaxis undefined?
- Chart configurations in case of high number of legends
- Use classic mode instead of styled mode in Highcharts with Angular
- How to display hovered point value in Highcharts Crosshair
- Highcharts When printing the chart does not fit the page