JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<div id="chartContainer1"></div>
JavaScript
var chart1 = new CanvasJS.Chart("chartContainer1", {
title: {
text: "Formatting Y-Axis labels"
},
axisY: {
valueFormatString: "#",
interval: 1
},
data: [
{
type: "column",
dataPoints: [
{ x: 10, y: 1 },
{ x: 20, y: 1},
{ x: 30, y: 1 },
{ x: 40, y: 1 },
{ x: 50, y: 1 },
{ x: 60, y: 1 },
{ x: 70, y: 1 },
{ x: 80, y: 1 },
{ x: 90, y: 1}
]
}
]
});
chart1.render();