Folder reorganize 1
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer",
|
||||
{
|
||||
title:{
|
||||
text: "Pie Chart"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "doughnut",
|
||||
dataPoints: [
|
||||
{ y: 4181563},
|
||||
{ y: 2175498},
|
||||
{ y: 3125844},
|
||||
{ y: 1176121},
|
||||
{ y: 1727161},
|
||||
{ y: 4303364},
|
||||
{ y: 1717786}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
chart.render();
|
||||
}
|
||||
</script>
|
||||
<script src="../../canvasjs.min.js"></script>
|
||||
<title>CanvasJS Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="chartContainer" style="height: 400px; width: 100%;"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer",
|
||||
{
|
||||
title:{
|
||||
text: "Presidential Election Results"
|
||||
},
|
||||
animationEnabled: true,
|
||||
data: [
|
||||
{
|
||||
type: "doughnut",
|
||||
startAngle: 60,
|
||||
toolTipContent: "{legendText}: {y} - <strong>#percent% </strong>",
|
||||
showInLegend: true,
|
||||
explodeOnClick: false, //**Change it to true
|
||||
dataPoints: [
|
||||
{y: 65899660, indexLabel: "Barack Obama #percent%", legendText: "Barack Obama" },
|
||||
{y: 60929152, indexLabel: "Mitt Romney #percent%", legendText: "Mitt Romney" },
|
||||
{y: 2175850, indexLabel: "Others #percent%", legendText: "Others" }
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
chart.render();
|
||||
}
|
||||
</script>
|
||||
<script src="../../canvasjs.min.js"></script>
|
||||
<title>CanvasJS Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="chartContainer" style="height: 400px; width: 100%;"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer", {
|
||||
title: {
|
||||
text: "Mobile / Tablet OS Market Share, Jun 2015"
|
||||
},
|
||||
animationEnabled: true,
|
||||
theme: "theme2",
|
||||
data: [
|
||||
{
|
||||
type: "doughnut",
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontSize: 20,
|
||||
startAngle: 0,
|
||||
indexLabelFontColor: "dimgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
toolTipContent: "{y} %",
|
||||
|
||||
dataPoints: [
|
||||
{ y: 51.04, indexLabel: "Android {y}%" },
|
||||
{ y: 40.83, indexLabel: "iOS {y}%" },
|
||||
{ y: 3.20, indexLabel: "Java ME {y}%" },
|
||||
{ y: 1.11, indexLabel: "BlackBerry {y}%" },
|
||||
{ y: 2.29, indexLabel: "Windows {y}%" },
|
||||
{ y: 1.53, indexLabel: "Others {y}%" }
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
}
|
||||
</script>
|
||||
<script src="../../canvasjs.min.js"></script>
|
||||
<title>CanvasJS Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="chartContainer" style="height: 400px; width: 100%;">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user