source: ether_statistics/web/resources/js/Wijmo.2.2.2/Wijmo-Complete/development-bundle/samples/compositechart/scatterwithregressionline.html @ 651

Last change on this file since 651 was 651, checked in by vmipsl, 12 years ago

wijmo

File size: 2.8 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4        <title>CompositeChart - Regression Line</title>
5        <meta charset="utf-8" />
6        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7        <meta name="description" content="%description%" />
8        <meta name="keywords" content="" />
9        <meta name="author" content="ComponentOne" />
10       
11        <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" />
12       
13        <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script>
14        <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
15        <script src="../../external/globalize.min.js" type="text/javascript"></script>
16        <script src="../../external/raphael-min.js" type="text/javascript"></script>
17        <script src="../../wijmo/jquery.wijmo.raphael.js" type="text/javascript"></script>
18        <script src="../../wijmo/jquery.wijmo.wijchartcore.js" type="text/javascript"></script>
19        <script src="../../wijmo/jquery.wijmo.wijscatterchart.js" type="text/javascript"></script>
20        <script src="../../wijmo/jquery.wijmo.wijlinechart.js" type="text/javascript"></script>
21        <script src="../../wijmo/jquery.wijmo.wijcompositechart.js" type="text/javascript"></script>
22        <script id="scriptInit" type="text/javascript">
23                $(document).ready(function () {
24                        $("#wijcompositechart").wijcompositechart({
25                                axis: {
26                                        y: {
27                                                text: "y values"
28                                        },
29                                        x: {
30                                                text: "",
31                                                autoMax: false,
32                                                autoMin: false,
33                                                max: 6,
34                                                min: -0.5
35                                        }
36                                },
37                                hint: {
38                                        content: function () {
39                                                return this.label + ": x=" + this.x + ', y=' + this.y + '';
40                                        }
41                                },
42                                stacked: false,
43                                header: {
44                                        text: "Scatter plot with regression line"
45                                },
46                                seriesList: [{
47                                        type: 'scatter',
48                                        label: 'Observations',
49                                        legendEntry: true,
50                                        data: { x: [0, 1, 2, 3, 4, 5], y: [1, 1.5, 2.8, 3.5, 3.9, 4.2] },
51                                        markerType: "circle"
52                                }, {
53                                        type: "line",
54                                        label: "Regression Line",
55                                        legendEntry: true,
56                                        data: { x: [0, 5], y: [1.11, 4.51] },
57                                        marker: {
58                                                visible: false
59                                        }
60                                }
61                                ]
62                        });
63                });
64        </script>
65</head>
66<body class="demo-single">
67        <div class="container">
68                <div class="header">
69                        <h2>
70                                Regression Line</h2>
71                </div>
72                <div class="main demo">
73                        <!-- Begin demo markup -->
74                        <div id="wijcompositechart" class="ui-widget ui-widget-content ui-corner-all" style="width: 750px; height: 350px">
75                        </div>
76                        <!-- End demo markup -->
77                        <div class="demo-options">
78                                <!-- Begin options markup -->
79                                <!-- End options markup -->
80                        </div>
81                </div>
82                <div class="footer demo-description">
83                        <p>
84The Wijmo Composite Chart widget (wijcompositechart) allows you to draw multiple types of charts in one canvas simultaneously.
85                        </p>
86                </div>
87        </div>
88</body>
89</html>
Note: See TracBrowser for help on using the repository browser.