Folder reorganize 1
This commit is contained in:
56
OLD/charts/canvasjs/index.html
Normal file
56
OLD/charts/canvasjs/index.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head>
|
||||
<title></title>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
|
||||
<script src="jquery.canvasjs.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
||||
$.getJSON("data.php", function (result) {
|
||||
|
||||
var chart = new CanvasJS.Chart("chartContainer", {
|
||||
animationEnabled: true,
|
||||
theme: "theme9",
|
||||
title:{
|
||||
text: "Tacos"
|
||||
},
|
||||
axisY:[{
|
||||
lineColor: "#4F81BC",
|
||||
tickColor: "#4F81BC",
|
||||
labelFontColor: "#4F81BC",
|
||||
titleFontColor: "#4F81BC",
|
||||
lineThickness: 2,
|
||||
},
|
||||
{
|
||||
lineColor: "#C0504E",
|
||||
tickColor: "#C0504E",
|
||||
labelFontColor: "#C0504E",
|
||||
titleFontColor: "#C0504E",
|
||||
lineThickness: 2,
|
||||
|
||||
}],
|
||||
data: [
|
||||
|
||||
{
|
||||
type: "spline", //change type to bar, line, area, pie, etc
|
||||
showInLegend: true,
|
||||
dataPoints: result
|
||||
}
|
||||
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="chartContainer" style="width: 800px; height: 380px;"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user