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: "Delhi Temperature (1 Apr - 7 Apr) 2014"
|
||||
},
|
||||
axisY: {
|
||||
includeZero: false,
|
||||
interval: 2,
|
||||
valueFormatString: "#0.## °C"
|
||||
},
|
||||
axisX: {
|
||||
interval: 1,
|
||||
valueFormatString: "DD-MMM"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "rangeBar",
|
||||
yValueFormatString: "#0.## °C",
|
||||
dataPoints: [
|
||||
{x: new Date(2014,03,1), y: [ 17,33]},
|
||||
{x: new Date(2014,03,2), y: [ 18,35]},
|
||||
{x: new Date(2014,03,3), y: [ 18,32]},
|
||||
{x: new Date(2014,03,4), y: [ 18,32]},
|
||||
{x: new Date(2014,03,5), y: [ 20,35]},
|
||||
{x: new Date(2014,03,6), y: [ 20,38]},
|
||||
{x: new Date(2014,03,7), y: [ 21,32]}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
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,49 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer",
|
||||
{
|
||||
title:{
|
||||
text: "Employees Salary in a Company",
|
||||
},
|
||||
axisY: {
|
||||
includeZero:false,
|
||||
title: "Salary in USD(Thousands)",
|
||||
interval: 10,
|
||||
},
|
||||
axisX: {
|
||||
interval:10,
|
||||
title: "Departments",
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "rangeBar",
|
||||
showInLegend: true,
|
||||
yValueFormatString: "$#0.##K",
|
||||
indexLabel: "{y[#index]}",
|
||||
legendText: "Department wise Min and Max Salary",
|
||||
dataPoints: [ // Y: [Low, High]
|
||||
{x: 10, y:[80, 110], label: "Data Scientist"},
|
||||
{x: 20, y:[95, 141], label: "Product Manager" },
|
||||
{x: 30, y:[98, 115], label: "Web Developer" },
|
||||
{x: 40, y:[90, 160], label: "Software Engineer"},
|
||||
{x: 50, y:[100,152], label: "Quality Assurance"}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
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