Highcharts x axis date full range even if there is not enough data
angularjs, highcharts, javascript
Solution
You don't have to pass any null values - all you have to do is set an axis min and max.
That way, no matter what data you send, the full time span will be displayed.
- http://api.highcharts.com/highcharts#xAxis.min
- http://api.highcharts.com/highcharts#xAxis.max
for `example`:
- http://jsfiddle.net/jlbriggs/LeXmz/
Problem
I have an highcharts linechart with data. I want to display the data with datetime on the x-axis. This works fine, my only problem is that the x-axis always seems to end at the end of my data. I want to display the whole year in months, even if there are only 3 months available. Is there a way to "Force" the x-axis to do this?