JSFiddle - React, Tailwind, and code Playground
HTML
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
JavaScript
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
title: {
text: "Bug"
},
axisY: {
title: "Taux",
suffix: "%",
minimum: 0,
maximum: 1,
},
data: [{
type: "column",
yValueFormatString: "##,#0.##'%'",
indexLabel: "{y}",
dataPoints: [
{ y: 0.5, label: "0.5 %" },
]
}]
});
chart.render();
}