Folder reorganize 1
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer",
|
||||
{
|
||||
title:{
|
||||
text: "Evening Sales of a Restaurant"
|
||||
},
|
||||
|
||||
data: [
|
||||
{
|
||||
type: "stackedBar",
|
||||
dataPoints: [
|
||||
{ x: new Date(2012, 01, 1), y: 71 },
|
||||
{ x: new Date(2012, 02, 1), y: 55},
|
||||
{ x: new Date(2012, 03, 1), y: 50 },
|
||||
{ x: new Date(2012, 04, 1), y: 65 },
|
||||
{ x: new Date(2012, 05, 1), y: 95 }
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "stackedBar",
|
||||
dataPoints: [
|
||||
{ x: new Date(2012, 01, 1), y: 71 },
|
||||
{ x: new Date(2012, 02, 1), y: 55},
|
||||
{ x: new Date(2012, 03, 1), y: 50 },
|
||||
{ x: new Date(2012, 04, 1), y: 65 },
|
||||
{ x: new Date(2012, 05, 1), y: 95 }
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "stackedBar",
|
||||
dataPoints: [
|
||||
{ x: new Date(2012, 01, 1), y: 71 },
|
||||
{ x: new Date(2012, 02, 1), y: 55},
|
||||
{ x: new Date(2012, 03, 1), y: 50 },
|
||||
{ x: new Date(2012, 04, 1), y: 65 },
|
||||
{ x: new Date(2012, 05, 1), y: 95 }
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
type: "stackedBar",
|
||||
dataPoints: [
|
||||
{ x: new Date(2012, 01, 1), y: 61 },
|
||||
{ x: new Date(2012, 02, 1), y: 75},
|
||||
{ x: new Date(2012, 03, 1), y: 80 },
|
||||
{ x: new Date(2012, 04, 1), y: 85 },
|
||||
{ x: new Date(2012, 05, 1), y: 105 }
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "stackedBar",
|
||||
dataPoints: [
|
||||
{ x: new Date(2012, 01, 1), y: 20 },
|
||||
{ x: new Date(2012, 02, 1), y: 35},
|
||||
{ x: new Date(2012, 03, 1), y: 30 },
|
||||
{ x: new Date(2012, 04, 1), y: 45 },
|
||||
{ x: new Date(2012, 05, 1), y: 25 }
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
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,123 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer", {
|
||||
title: {
|
||||
text: "Cost Of Pancake Ingredients, 2011"
|
||||
},
|
||||
animationEnabled: true,
|
||||
axisX: {
|
||||
interval: 1,
|
||||
labelFontSize: 10,
|
||||
lineThickness: 0
|
||||
},
|
||||
axisY2: {
|
||||
valueFormatString: "$ 0",
|
||||
lineThickness: 0
|
||||
},
|
||||
toolTip: {
|
||||
shared: true
|
||||
},
|
||||
legend: {
|
||||
verticalAlign: "top",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
|
||||
data: [{
|
||||
type: "stackedBar",
|
||||
showInLegend: true,
|
||||
name: "Butter (500gms)",
|
||||
axisYType: "secondary",
|
||||
color: "#7E8F74",
|
||||
dataPoints: [
|
||||
{ y: 3, label: "India" },
|
||||
{ y: 5, label: "US" },
|
||||
{ y: 3, label: "Germany" },
|
||||
{ y: 6, label: "Brazil" },
|
||||
{ y: 7, label: "China" },
|
||||
{ y: 5, label: "Australia" },
|
||||
{ y: 5, label: "France" },
|
||||
{ y: 7, label: "Italy" },
|
||||
{ y: 9, label: "Singapore" },
|
||||
{ y: 8, label: "Switzerland" },
|
||||
{ y: 12, label: "Japan" }
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "stackedBar",
|
||||
showInLegend: true,
|
||||
name: "Flour (1kg)",
|
||||
axisYType: "secondary",
|
||||
color: "#F0E6A7",
|
||||
dataPoints: [
|
||||
{ y: .5, label: "India" },
|
||||
{ y: 1.5, label: "US" },
|
||||
{ y: 1, label: "Germany" },
|
||||
{ y: 2, label: "Brazil" },
|
||||
{ y: 2, label: "China" },
|
||||
{ y: 2.5, label: "Australia" },
|
||||
{ y: 1.5, label: "France" },
|
||||
{ y: 1, label: "Italy" },
|
||||
{ y: 2, label: "Singapore" },
|
||||
{ y: 2, label: "Switzerland" },
|
||||
{ y: 3, label: "Japan" }
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "stackedBar",
|
||||
showInLegend: true,
|
||||
name: "Milk (2l)",
|
||||
axisYType: "secondary",
|
||||
color: "#EBB88A",
|
||||
dataPoints: [
|
||||
{ y: 2, label: "India" },
|
||||
{ y: 3, label: "US" },
|
||||
{ y: 3, label: "Germany" },
|
||||
{ y: 3, label: "Brazil" },
|
||||
{ y: 4, label: "China" },
|
||||
{ y: 3, label: "Australia" },
|
||||
{ y: 4.5, label: "France" },
|
||||
{ y: 4.5, label: "Italy" },
|
||||
{ y: 6, label: "Singapore" },
|
||||
{ y: 3, label: "Switzerland" },
|
||||
{ y: 6, label: "Japan" }
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "stackedBar",
|
||||
showInLegend: true,
|
||||
name: "Eggs (20)",
|
||||
axisYType: "secondary",
|
||||
color: "#DB9079",
|
||||
indexLabel: "$#total",
|
||||
indexLabelPlacement: "outside",
|
||||
dataPoints: [
|
||||
{ y: 2, label: "India" },
|
||||
{ y: 3, label: "US" },
|
||||
{ y: 6, label: "Germany" },
|
||||
{ y: 4, label: "Brazil" },
|
||||
{ y: 4, label: "China" },
|
||||
{ y: 8, label: "Australia" },
|
||||
{ y: 8, label: "France" },
|
||||
{ y: 8, label: "Italy" },
|
||||
{ y: 4, label: "Singapore" },
|
||||
{ y: 11, label: "Switzerland" },
|
||||
{ y: 6, label: "Japan" }
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
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