JSFiddle - React, Tailwind, and code Playground

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",
                               {
  title:{
    text: "Multi-Series Line Chart"  
  },
  data: [
    {        
      type: "line",
      dataPoints: [
        { x: 1, y: 30 },
        { x: 3, y: 40 },
        { x: 4, y: 50 },
        { x: 6, y: 60 },
        { x: 7, y: 90 },
        { x: 8, y: 20 },
        { x: 9, y: 50}

      ]
    }, {        
      type: "line",
      dataPoints: [
        { x: 1, y: 10 },
        { x: 2, y: 20},
        { x: 3, y: 30 },
        { x: 4, y: 40 },
        { x: 5, y: 50 },
        { x: 6, y: 60 },
        { x: 7, y: 70 },
        { x: 8, y: 80 },
        { x: 9, y: 90}

      ]
    }
  ]
});

for(i=0; i<chart.options.data.length; i++) {
	var dps = chart.options.data[i].dataPoints;
  for(var j = 1; j < dps.length; j++) {
    if(dps[j].x > (j+1))
      dps.splice(j, 0, {x: j+1, y: dps[j-1].y});
  }
}

chart.render();