I have a chartjs linechart diagram to show the sales of different products on a range of dates. The user can select a date range (for example from 2015-12-01 to 2015-12-10)
Instead of hardcoding the labels and values with blank parameters use offset property inside scale under options.
scales: {
xAxes: [{
offset:true,
}}
}