JAVASCRIPT create chart javascript - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution

create chart using javascript


 344

JAVASCRIPT


1

<!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>


By     Created   
The power of the user (%)
36%



The most helpful JAVASCRIPT solutions

How to get client machine name or computer name with javascript ?How to get client machine name or computer name with javascript ?JAVASCRIPT

Click to see more ...

  3.5K     363

get client hostname javascriptget client hostname javascriptJAVASCRIPT

Click to see more ...

  2K     249

detect ie javascriptdetect ie javascriptJAVASCRIPT

Click to see more ...

  1.1K     150

get ip address javascriptget ip address javascriptJAVASCRIPT

Click to see more ...

  640     74

how to create foreach class using javascript ?how to create foreach class using javascript ?JAVASCRIPT

Click to see more ...

  477     69

create qr code javascriptcreate qr code javascriptJAVASCRIPT

Click to see more ...

  443     67

get current url using javascriptget current url using javascriptJAVASCRIPT

Click to see more ...

  276     52

get filename using javascript get filename using javascript JAVASCRIPT

Click to see more ...

  262     45

how to create the connect to a database with ADODB using javascript ?how to create the connect to a database with ADODB using javascript ?JAVASCRIPT

Click to see more ...

  242     43

How replace reverse solidus using javascript ?How replace reverse solidus using javascript ?JAVASCRIPT

Click to see more ...

  237     41