73 lines
1.6 KiB
HTML
Executable File
73 lines
1.6 KiB
HTML
Executable File
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<script>
|
|
window.onload = function () {
|
|
|
|
var chart = new CanvasJS.Chart("chartContainer", {
|
|
animationEnabled: true,
|
|
title: {
|
|
text: "Daily Email Analysis"
|
|
},
|
|
axisX: {
|
|
valueFormatString: "DDD",
|
|
minimum: new Date(2017, 1, 5, 23),
|
|
maximum: new Date(2017, 1, 12, 1)
|
|
},
|
|
axisY: {
|
|
title: "Number of Messages"
|
|
},
|
|
legend: {
|
|
verticalAlign: "top",
|
|
horizontalAlign: "right",
|
|
dockInsidePlotArea: true
|
|
},
|
|
toolTip: {
|
|
shared: true
|
|
},
|
|
data: [{
|
|
name: "Received",
|
|
showInLegend: true,
|
|
legendMarkerType: "square",
|
|
type: "area",
|
|
color: "rgba(40,175,101,0.6)",
|
|
markerSize: 0,
|
|
dataPoints: [
|
|
{ x: new Date(2017, 1, 6), y: 220 },
|
|
{ x: new Date(2017, 1, 7), y: 120 },
|
|
{ x: new Date(2017, 1, 8), y: 144 },
|
|
{ x: new Date(2017, 1, 9), y: 162 },
|
|
{ x: new Date(2017, 1, 10), y: 129 },
|
|
{ x: new Date(2017, 1, 11), y: 109 },
|
|
{ x: new Date(2017, 1, 12), y: 129 }
|
|
]
|
|
},
|
|
{
|
|
name: "Sent",
|
|
showInLegend: true,
|
|
legendMarkerType: "square",
|
|
type: "area",
|
|
color: "rgba(0,75,141,0.7)",
|
|
markerSize: 0,
|
|
dataPoints: [
|
|
{ x: new Date(2017, 1, 6), y: 42 },
|
|
{ x: new Date(2017, 1, 7), y: 34 },
|
|
{ x: new Date(2017, 1, 8), y: 29 },
|
|
{ x: new Date(2017, 1, 9), y: 42 },
|
|
{ x: new Date(2017, 1, 10), y: 53},
|
|
{ x: new Date(2017, 1, 11), y: 15 },
|
|
{ x: new Date(2017, 1, 12), y: 12 }
|
|
]
|
|
}]
|
|
});
|
|
chart.render();
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="chartContainer" style="height: 370px; max-width: 920px; margin: 0px auto;"></div>
|
|
<script src="../../canvasjs.min.js"></script>
|
|
</body>
|
|
</html> |