I'm experiencing an issue when grouping data by month. I believe it to be a bug with the size of the dataset (January 1, 2018 - April 30, 2018) that I'm using but perhaps there is a better way of utilizing dataGrouping
. The issue that I'm experiencing is that the X-Axis labels are not correct.
For a date range of January 1, 2018 to April 30, 2018:
Expected X-Axis to Be: "Jan, '18" "Feb, '18" "Mar, '18" "Apr, '18"
Actual X-Axis: "Jan, '18" "Feb, '18" "Mar, '18" "Mar, '18" "Apr, '18"
In my example (jsfiddle), I'm conditionally enabling dataGrouping on line 76: data.dataGrouping.enabled = (e.target.value === 'month');
Any insight would be greatly appreciated.
this.value
returns 1522500000000 which is to saySaturday, March 31, 2018 12:40:00 PM
. This probably has something to do with how the approximation works, not that I can say for sure. Ref: api.highcharts.com/highstock/series.column.dataGrouping. It looks like it groups 30 days as a month, no matter the real length. – ewolden