JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>

<div id="chartContainer" style="height: 300px; width: 100%;"></div>

JavaScript

var chart = new CanvasJS.Chart("chartContainer", {
  title: {
    text: "Stripline shown for a particular range"
  },
  axisY:{
    stripLines:[
      {
        startValue: -8,
        endValue:  10
      }
    ]
  },
  data: [
    {
      type: "spline",         
      dataPoints: [
        { x: 10, y: 5}, 
        { x: 20, y: 9}, 
        { x: 30, y: 1}, 
        { x: 40, y: 12}, 
        { x: 50, y: 12}, 
        { x: 60, y: 4}, 
        { x: 70, y: 5}, 
        { x: 80, y: 8}, 
        { x: 90, y: -5}
      ]
    }
  ]        
});
chart.render();