X-Axis unwanted points
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<br/><!-- Just so that JSFiddle's Result label doesn't overlap the Chart -->
<div id="chartContainer" style="height: 360px; width: 100%;"></div>
JavaScript
var chart = new CanvasJS.Chart("chartContainer",
{
animationEnabled: true,
title: {
text: "Line Chart"
},
axisX: {
valueFormatString: "DD/MM/YY",
interval: 1,
intervalType: "day",
showInLegend: true,
gridColor: "lightblue" ,
gridThickness: 2,
labelAngle: 270
},
axisY: {
includeZero: false,
gridColor: "lightgreen"
},
data: [{
dataPoints: [
{ x: new Date(2020,01,01), y: 71 },
{ x: new Date(2020,01,02), y: 55},
{ x: new Date(2020,01,05), y: 95 },
{ x: new Date(2020,01,06), y: 68 },
{ x: new Date(2020,01,07), y: 28 },
{ x: new Date(2020,01,08), y: 34 },
{ x: new Date(2020,01,09), y: 14}
]
}]
});
chart.render();