highslide-software/highcharts.com — Issue #806: Change column series pointWidth calculation to use series.closestPointRange
Author: shiftyp
Created: 2012-03-05 17:29:50+00:00
State: open

Currently the `ColumnSeries` translate method uses the `xAxis.closestPointRange` to [calculate the `categoryWidth`](https://github.com/highslide-software/highcharts.com/blob/2b3de47e351d27b39558aeab8c6c4795305ebe7b/js/parts/ColumnSeries.js#L71), and later the `series.pointWidth` for column series in the case where the `pointWidth` option isn't set. The issue with this arises when you have a dateTime axis on where you plot, say daily data along with columns for annual data. The `closestPointRange` for the axis is based off of the daily data, so you end up with thin columns for the annual data relative to the point range of that series. Instead of using the `xAxis.closestPointRange` in the above calculation, use `series.closestPointRange` to resolve this issue.