initial commit
[power-brultech.git] / charts / canvas / examples / 03-area-chart / area-chart-with-date-time-axis.html
1 <!DOCTYPE HTML>\r
2 <html>\r
3 <head>\r
4         <script type="text/javascript">\r
5   window.onload = function () {\r
6     var chart = new CanvasJS.Chart("chartContainer",\r
7     {\r
8       title: {\r
9         text: "Monthly Downloads"\r
10       },\r
11         data: [\r
12       {\r
13         type: "area",\r
14         dataPoints: [//array\r
15 \r
16         { x: new Date(2012, 00, 1), y: 2600 },\r
17         { x: new Date(2012, 01, 1), y: 3800 },\r
18         { x: new Date(2012, 02, 1), y: 4300 },\r
19         { x: new Date(2012, 03, 1), y: 2900 },\r
20         { x: new Date(2012, 04, 1), y: 4100 },\r
21         { x: new Date(2012, 05, 1), y: 4500 },\r
22         { x: new Date(2012, 06, 1), y: 8600 },\r
23         { x: new Date(2012, 07, 1), y: 6400 },\r
24         { x: new Date(2012, 08, 1), y: 5300 },\r
25         { x: new Date(2012, 09, 1), y: 6000 }\r
26         ]\r
27       }\r
28       ]\r
29     });\r
30 \r
31     chart.render();\r
32   }\r
33         </script>\r
34         <script src="../../canvasjs.min.js"></script>\r
35         <title>CanvasJS Example</title>\r
36 </head>\r
37 <body>\r
38         <div id="chartContainer" style="height: 400px; width: 100%;">\r
39         </div>\r
40 </body>\r
41 </html>