initial commit
[power-brultech.git] / charts / canvas / examples / 17-spline-area-chart / spline-area-chart-with-stripline.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                                 title: {\r
8                                         text: "Spline Area Chart with Stripline on Axis X"\r
9                                 },\r
10                                 axisX: {\r
11                                         stripLines: [\r
12                                         {\r
13                                                 value: 1940\r
14                                         }\r
15                                         ],\r
16                                         valueFormatString: "####"\r
17                                 },\r
18                                 data: [\r
19                                 {\r
20                                         type: "splineArea",\r
21                                         color: "rgba(83, 223, 128, .6)",\r
22                                         dataPoints: [\r
23                                                 { x: 1910, y: 5 },\r
24                                                 { x: 1920, y: 9 },\r
25                                                 { x: 1930, y: 17 },\r
26                                                 { x: 1940, y: 32 },\r
27                                                 { x: 1950, y: 22 },\r
28                                                 { x: 1960, y: 14 },\r
29                                                 { x: 1970, y: 25 },\r
30                                                 { x: 1980, y: 18 },\r
31                                                 { x: 1990, y: 20 }\r
32                                         ]\r
33                                 }\r
34                                 ]\r
35                         });\r
36                         chart.render();\r
37                 }\r
38         </script>\r
39         <script src="../../canvasjs.min.js"></script>\r
40         <title>CanvasJS Example</title>\r
41 </head>\r
42 <body>\r
43         <div id="chartContainer" style="height: 400px; width: 100%;"></div>\r
44 </body>\r
45 </html>