Home › Forums › Chart Support › XAsis shows dates not in the datapoints › Reply To: XAsis shows dates not in the datapoints
When the x-values passed are date-time, labels will be rendered at every interval based on the value of intervalType.
For example: if interval is 1 and intervalType is ‘month’ – labels will be shown at every 1 month. Since the axis behaves linearly across the date range it won’t skip months for which there are no dataPoints.
In your case, since you are trying to display axis label for only dataPoint you can use label instead of x.
Alternatively, you can use scaleBreaks to remove the unnecessary region on x-axis as shown in the code snippet below –
Please take a look at this updated JSFiddle for an example on removing unnecessary region on x-axis using scaleBreak.