Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE HTML>
<html>
<head>
<script>
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
title:{
text: "Your Title",
horizontalAlign: "left"
},
data: [{
type: "doughnut",
startAngle: 60,
indexLabelFontSize: 17,
indexLabel: "{label} - #percent%",
toolTipContent: "<b>{label}:</b> {y} (#percent%)",
dataPoints: [
{ y: 67, label: "label1" },
{ y: 28, label: "label2" },
{ y: 10, label: "label3" },
{ y: 7, label: "label4"},
{ y: 15, label: "label5"},
{ y: 6, label: "label6"}
]
}]
});
chart.render();
}
</script>
</head>
<body>
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507