Folder reorganize 1
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer",
|
||||
{
|
||||
title: {
|
||||
text: "Number of Students in Each Room"
|
||||
},
|
||||
|
||||
data: [
|
||||
{
|
||||
type: "stackedColumn100",
|
||||
dataPoints: [
|
||||
{ y: 40, label: "Cafeteria" },
|
||||
{ y: 10, label: "Lounge" },
|
||||
{ y: 72, label: "Games Room" },
|
||||
{ y: 30, label: "Lecture Hall" },
|
||||
{ y: 21, label: "Library" }
|
||||
]
|
||||
}, {
|
||||
type: "stackedColumn100",
|
||||
dataPoints: [
|
||||
{ y: 20, label: "Cafeteria" },
|
||||
{ y: 14, label: "Lounge" },
|
||||
{ y: 40, label: "Games Room" },
|
||||
{ y: 43, label: "Lecture Hall" },
|
||||
{ y: 17, label: "Library" }
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
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,106 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer", {
|
||||
title: {
|
||||
text: "Composition of Internet Traffic in North America",
|
||||
horizontalAlign: "right"
|
||||
},
|
||||
axisX: {
|
||||
tickThickness: 0,
|
||||
interval: 1,
|
||||
intervalType: "year"
|
||||
},
|
||||
animationEnabled: true,
|
||||
toolTip: {
|
||||
shared: true
|
||||
},
|
||||
axisY: {
|
||||
lineThickness: 0,
|
||||
tickThickness: 0,
|
||||
interval: 20
|
||||
},
|
||||
legend: {
|
||||
verticalAlign: "center",
|
||||
horizontalAlign: "left"
|
||||
},
|
||||
|
||||
data: [
|
||||
{
|
||||
name: "Real-Time",
|
||||
showInLegend: true,
|
||||
type: "stackedColumn100",
|
||||
color: "#004B8D ",
|
||||
indexLabel: "{y}",
|
||||
dataPoints: [
|
||||
{ x: new Date(2009, 0), y: 30 },
|
||||
{ x: new Date(2010, 0), y: 40 },
|
||||
{ x: new Date(2011, 0), y: 50 },
|
||||
{ x: new Date(2012, 0), y: 60 },
|
||||
{ x: new Date(2013, 0), y: 40 },
|
||||
{ x: new Date(2014, 0), y: 50 }
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "Web Browsing",
|
||||
showInLegend: true,
|
||||
type: "stackedColumn100",
|
||||
color: "#0074D9 ",
|
||||
indexLabel: "{y}",
|
||||
dataPoints: [
|
||||
{ x: new Date(2009, 0), y: 40 },
|
||||
{ x: new Date(2010, 0), y: 28 },
|
||||
{ x: new Date(2011, 0), y: 18 },
|
||||
{ x: new Date(2012, 0), y: 18 },
|
||||
{ x: new Date(2013, 0), y: 18 },
|
||||
{ x: new Date(2014, 0), y: 18 }
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "File Sharing",
|
||||
showInLegend: true,
|
||||
type: "stackedColumn100",
|
||||
color: "#4192D9 ",
|
||||
indexLabel: "{y}",
|
||||
dataPoints: [
|
||||
{ x: new Date(2009, 0), y: 15 },
|
||||
{ x: new Date(2010, 0), y: 15 },
|
||||
{ x: new Date(2011, 0), y: 12 },
|
||||
{ x: new Date(2012, 0), y: 10 },
|
||||
{ x: new Date(2013, 0), y: 12 },
|
||||
{ x: new Date(2014, 0), y: 10 }
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "Other",
|
||||
showInLegend: true,
|
||||
type: "stackedColumn100",
|
||||
color: "#7ABAF2 ",
|
||||
indexLabel: "{y}",
|
||||
dataPoints: [
|
||||
{ x: new Date(2009, 0), y: 15 },
|
||||
{ x: new Date(2010, 0), y: 17 },
|
||||
{ x: new Date(2011, 0), y: 20 },
|
||||
{ x: new Date(2012, 0), y: 18 },
|
||||
{ x: new Date(2013, 0), y: 20 },
|
||||
{ x: new Date(2014, 0), y: 17 }
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
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