initial commit
[power-brultech.git] / charts / canvas / examples / 01-line-chart / line-chart-with-line-customization.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: "Line Chart with Different Color in a Section"\r
10       },\r
11       data: [\r
12       {\r
13         type: "line",\r
14         dataPoints: [\r
15         { x: 10, y: 71 },\r
16         { x: 20, y: 55 },\r
17         { x: 30, y: 50 },\r
18         { x: 40, y: 65, lineColor:"red" }, //**Change the lineColor here\r
19         { x: 50, y: 68 },\r
20         { x: 60, y: 28 },\r
21         { x: 70, y: 34 },\r
22         { x: 80, y: 14 },\r
23         { x: 90, y: 23},\r
24         ]\r
25       }\r
26       ]\r
27     });\r
28 \r
29     chart.render();\r
30   }\r
31         </script>\r
32         <script src="../../canvasjs.min.js"></script>\r
33         <title>CanvasJS Example</title>\r
34 </head>\r
35 <body>\r
36         <div id="chartContainer" style="height: 400px; width: 100%;">\r
37         </div>\r
38 </body>\r
39 </html>