source: Dev/branches/Cartis/Tiles preview/js/RGraph/examples/bipolar.html @ 283

Last change on this file since 283 was 283, checked in by tjcschipper, 13 years ago

Cartis Mockup werkt!

W
I
N
N
I
N
G

File size: 7.4 KB
Line 
1<?php ob_start('ob_gzhandler') ?>
2<!DOCTYPE html>
3<html>
4<head>
5
6    <meta http-equiv="X-UA-Compatible" content="chrome=1">
7
8    <!--
9        /**
10        * o------------------------------------------------------------------------------o
11        * | This file is part of the RGraph package - you can learn more at:             |
12        * |                                                                              |
13        * |                          http://www.rgraph.net                               |
14        * |                                                                              |
15        * | This package is licensed under the RGraph license. For all kinds of business |
16        * | purposes there is a small one-time licensing fee to pay and for non          |
17        * | commercial  purposes it is free to use. You can read the full license here:  |
18        * |                                                                              |
19        * |                      http://www.rgraph.net/LICENSE.txt                       |
20        * o------------------------------------------------------------------------------o
21        */
22    -->
23    <title>RGraph: Javascript charts and graph library - bi-polar charts</title>
24   
25    <meta name="keywords" content="rgraph html5 canvas example bipolar charts" />
26    <meta name="description" content="RGraph: Javascript charts and graph library -  Bipolar charts example" />
27   
28    <meta property="og:title" content="RGraph: Javascript charts and graph library" />
29    <meta property="og:description" content="A charts library based on the HTML5 canvas tag" />
30    <meta property="og:image" content="http://www.rgraph.net/images/logo.png"/>
31
32    <link rel="stylesheet" href="../css/website.css" type="text/css" media="screen" />
33    <link rel="icon" type="image/png" href="../images/favicon.png">
34
35    <script src="../libraries/RGraph.common.core.js"></script>
36    <script src="../libraries/RGraph.common.tooltips.js"></script>
37    <script src="../libraries/RGraph.bipolar.js"></script>
38    <!--[if IE 8]><script src="../excanvas/excanvas.original.js"></script><![endif]-->
39
40    <script>
41        window.onload = function ()
42        {
43            var left  = [5,6,8,9,12,13,4,9];
44            var right = [5,8,4,11,15,26,13,16];
45           
46            var bipolar1 = new RGraph.Bipolar('bipolar1', left, right);
47            bipolar1.Set('chart.colors', ['red']);
48            bipolar1.Set('chart.labels', ['Barry', 'John', 'Fred', 'George', 'Rich', 'Larry', 'John', 'Mike']);
49            bipolar1.Set('chart.title.left', '2007');
50            bipolar1.Set('chart.title.right', '2008');
51            bipolar1.Set('chart.title', 'Sales');
52           
53            if (!RGraph.isIE8()) {
54                bipolar1.Set('chart.tooltips', ['Barry', 'John', 'Fred', 'George', 'Rich', 'Larry', 'John', 'Mike', 'Barry', 'John', 'Fred', 'George', 'Rich', 'Larry', 'John', 'Mike']);
55                bipolar1.Set('chart.tooltips.effect', 'fade');
56            }
57
58            bipolar1.Set('chart.units.post', 'k');
59            bipolar1.Set('chart.xmax', 35);
60            bipolar1.Set('chart.shadow', true);
61            bipolar1.Set('chart.shadow.offsety', 0);
62            bipolar1.Set('chart.shadow.offsetx', 0);
63            bipolar1.Set('chart.shadow.color', '#aaa');
64            bipolar1.Set('chart.shadow.blur', 25);
65            bipolar1.Draw();
66
67
68
69            var bipolar2 = new RGraph.Bipolar('bipolar2', left, right);
70            bipolar2.Set('chart.labels', ['Ferrari', 'Porsche', 'Honda', 'Mazda', 'Aston', 'BMW','Ford','Renault']);
71            bipolar2.Set('chart.title.left', 'July')
72            bipolar2.Set('chart.title.right', 'August');
73            bipolar2.Set('chart.title', 'Vehicle market share');
74            bipolar2.Set('chart.units.post', 'k');
75            bipolar2.Draw();
76        }
77    </script>
78
79    <script>
80      var _gaq = _gaq || [];
81      _gaq.push(['_setAccount', 'UA-54706-2']);
82      _gaq.push(['_trackPageview']);
83   
84      (function() {
85        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
86        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
87        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
88      })();
89    </script>
90</head>
91<body>
92
93    <!-- Social networking buttons -->
94        <div id="social_icons" class="warning" style="border-radius: 10px; top: 1px; position: fixed">
95            <a title="Bookmark with delicious" href="http://delicious.com/save?jump=close&v=4&noui&jump=close&url=http://www.rgraph.net&notes=RGraph%20is%20a%20HTML5%20based%20javascript%20charts%20library%20supporting%20a%20wide%20range%20of%20different%20charts%20types&title=RGraph:Javascript%20charts%20and%20graphs%20library" target="_blank"><img src="../images/delicious.png" alt="Bookmark with delicious" width="22" height="22" border="0" align="absmiddle" /></a>
96            <a href="http://twitter.com/home/?status=RGraph%3A%20Javascript+charts+and+graph+library+http%3A%2F%2Fwww.rgraph.net+%23rgraph+%23html5+%23canvas+%23javascript+%23charts+@_rgraph" target="_blank"><img src="../images/twitter.png" id="twitter_icon" alt="tweet this site" width="22" height="22" border="0" align="absmiddle" /></a>
97        </div>
98
99        <script>
100            // Opera fix
101            if (navigator.userAgent.indexOf('Opera') == -1) {
102              document.getElementById("social_icons").style.position = 'fixed';
103            }
104        </script>
105    <!-- Social networking buttons -->
106
107<div id="breadcrumb">
108    <a href="../index.html">RGraph: Javascript charts and graph library</a>
109    >
110    <a href="./index.html">Examples</a>
111    >
112    Bi-polar chart
113</div>
114
115
116<h1>RGraph: <span>Javascript charts and graph library</span> - Bi-polar charts</h1>
117
118    <script>
119        if (RGraph.isIE8()) {
120            document.write('<div style="background-color: #fee; border: 2px dashed red; padding: 5px"><b>Important</b><br /><br /> Internet Explorer 8 does not natively support the HTML5 canvas tag, so if you want to see the charts, you can either:<ul><li>Install <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a></li><li>Use ExCanvas. This is provided in the RGraph Archive.</li><li>Use another browser entirely. Your choices are Firefox 3.5+, Chrome 2+, Safari 4+ or Opera 10.5+. </li></ul> <b>Note:</b> Internet Explorer 9 fully supports the canvas tag. Click <a href="http://support.rgraph.net/message/rgraph-in-internet-explorer-9.html" target="_blank">here</a> to see some screenshots.</div>');
121        }
122    </script>
123   
124    <div>
125        <p>
126            The Bi-polar chart is also known as an age-frequency chart or a population pyramid. It allows you to very straight forwardly
127            compare two sets of data. For example two years worth of sales figues. Using this type of chart abnormalities will become
128            apparent. Other charts that would also be comparable, include a grouped bar chart, a stacked bar chart, and a multiple
129            line chart.
130        </p>
131
132        <div>
133            <ul>
134                <li><a href="../docs/bipolar.html">Bi-polar chart API documentation</a></li>
135            </ul>
136        </div>
137       
138        <div>
139            <canvas id="bipolar1" width="475" height="250">[No canvas support]</canvas>
140            <canvas id="bipolar2" width="475" height="250">[No canvas support]</canvas>
141        </div>
142    </div>
143
144</body>
145</html>
Note: See TracBrowser for help on using the repository browser.