1 <?php ob_start('ob_gzhandler') ?>
5 <meta http-equiv="X-UA-Compatible" content="chrome=1">
8 * o------------------------------------------------------------------------------o
9 * | This file is part of the RGraph package - you can learn more at: |
11 * | http://www.rgraph.net |
13 * | This package is licensed under the RGraph license. For all kinds of business |
14 * | purposes there is a small one-time licensing fee to pay and for non |
15 * | commercial purposes it is free to use. You can read the full license here: |
17 * | http://www.rgraph.net/LICENSE.txt |
18 * o------------------------------------------------------------------------------o
21 <title>RGraph: HTML5 canvas graph library - available CSS classes</title>
23 <meta name="keywords" content="rgraph html5 canvas graph docs css classes" />
24 <meta name="description" content="RGraph: HTML5 canvas graph software - Documentation about RGraph CSS classes" />
26 <link rel="stylesheet" href="../css/website.css" type="text/css" media="screen" />
27 <link rel="icon" type="image/png" href="../images/favicon.png">
29 <style type="text/css">
31 margin: 0 ! important;
35 text-decoration: none;
41 <!-- Social networking buttons -->
42 <script src="../libraries/RGraph.common.core.js" ></script>
45 function HideTwitterDIV ()
47 document.getElementById("twitter_div").style.opacity = 0;
48 document.getElementById("twitter_div").style.display = 'none';
52 function ShowTwitterDIV (e)
54 var e = RGraph.FixEventObject(document.all ? event : e);
55 var div = document.getElementById("twitter_div");
56 var img = document.getElementById("twitter_icon");
58 div.style.display = 'block';
59 div.style.left = (RGraph.getCanvasXY(img)[0] + img.offsetWidth - div.offsetWidth + 110) + 'px';
60 div.style.top = (RGraph.getCanvasXY(img)[1] - 1) + 'px';
65 setTimeout('document.getElementById("twitter_div").style.opacity = 0.2;', 25);
66 setTimeout('document.getElementById("twitter_div").style.opacity = 0.4;', 50);
67 setTimeout('document.getElementById("twitter_div").style.opacity = 0.6;', 100);
68 setTimeout('document.getElementById("twitter_div").style.opacity = 0.8;', 125);
69 setTimeout('document.getElementById("twitter_div").style.opacity = 1.0;', 150);
77 * This code installs the event handler that hides the Twitter DIV
80 window.attachEvent('onload', function () {document.body.attachEvent('onclick', HideTwitterDIV);});
82 window.addEventListener('click', HideTwitterDIV, false);
86 <!-- The twitter DIV -->
87 <div id="twitter_div" style="position: absolute;top: 0;left: 0;background-color: #eee;border: 2px dashed black;box-shadow: 0 0 15px #aaa;-moz-box-shadow: 0 0 15px #aaa;-webkit-box-shadow: 0 0 15px #aaa;padding: 3px;display: none;opacity: 0;z-index: 99;">
88 <a href="http://twitter.com/home/?status=RGraph%3A+HTML5+canvas+graph+library+based+on+the+HTML5+canvas+tag+http%3A%2F%2Fwww.rgraph.net+%23rgraph+%23html5+%23canvas" target="_blank" title="Share on Twitter" rel="nofollow" style="text-decoration: none">Tweet about RGraph</a><br>
89 <a href="http://twitter.com/_rgraph" style="text-decoration: none" rel="nofollow" target="_blank">Follow for HTML5 news</a>
92 <div id="social_icons" class="warning" style="top: 0; left: 5px; position: absolute">
95 if (navigator.userAgent.indexOf('Opera') == -1) {
96 document.getElementById("social_icons").style.position = 'fixed';
97 document.getElementById("twitter_div").style.position = 'fixed';
102 <b style="display: inline-block; position: relative; top: 1px">Bookmark and share:</b>
106 <a title="Bookmark with delicious" href="http://delicious.com/save?jump=close&v=4&noui&jump=close&url=http://www.rgraph.net¬es=RGraph%20is%20a%20HTML5%20based%20graph%20library%20supporting%20a%20wide%20range%20of%20different%20graph%20types:Bar,%20Bipolar,%20Donut,%20Funnel,%20Gantt,%20Horizontal%20Bar,%20LED,%20Line,%20Meter,%20Odometer,%20Pie,%20Progress%20Bar,%20Rose,%20RScatter,%20Scatter%20and%20Traditional%20Radar&title=RGraph:%20HTML5%20canvas%20graph%20library%20based%20on%20the%20HTML5%20canvas%20tag" target="_blank">
107 <img src="../images/delicious.png" alt="Bookmark with delicious" width="22" height="22" border="0" align="absmiddle" />
110 <a href="" target="_blank" onmouseover="if (document.getElementById('twitter_div').style.display == 'none') ShowTwitterDIV(event);" onclick="event.stopPropagation(); event.cancelBubble = true; return false">
111 <img src="../images/twitter.png" id="twitter_icon" alt="tweet this site" width="22" height="22" border="0" align="absmiddle" />
116 <a title="Post to Google Buzz!" href="" onclick="window.open('http://www.google.com/buzz/post?url=http://www.rgraph.net&imageurl=http://www.rgraph.net/images/logo.png', 'google_buzz_window', 'width=800,height=400,top=100,left=100'); return false">
117 <img src="../images/buzz.png" width="22" height="22" alt="Post to Google Buzz!" align="absmiddle" style="position: relative; top: -2px; border: 0" border="0"/>
121 <a title="Share RGraph on Facebook" href="" onclick="window.open('http://www.facebook.com/sharer.php?u=http://www.rgraph.net&t=RGraph:%20HTML5%20canvas%20graph%20library', 'facebook_window', 'width=500,height=300,top=100,left=100'); return false">
122 <img src="../images/facebook.png" width="22" height="22" alt="Post to Facebook" align="absmiddle" style="position: relative; top: -2px; border: 0" border="0"/>
125 <a href="mailto:share@friendfeed.com" title="Share on FriendFeed">
126 <img src="../images/friendfeed.png" width="22" height="22" alt="Share on FriendFeed" border="0" align="absmiddle" />
129 <a href="http://www.stumbleupon.com/submit?url=http://www.rgraph.net" target="_blank" title="Share on StumbleUpon" >
130 <img src="../images/stumble.png" alt="Stumble! this site" width="22" height="22" border="0" align="absmiddle" />
135 <!-- /Social networking buttons -->
137 <div id="breadcrumb">
138 <a href="../index.html">RGraph: HTML5 canvas graph library</a>
140 <a href="index.html">Documentation</a>
142 Available CSS classes
145 <h1>RGraph: HTML5 canvas graph library - Available CSS classes</h1>
148 if (RGraph.isIE8()) {
149 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 graphs, 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://groups.google.com/group/rgraph/browse_thread/thread/c5651ff8c56b8f3c#" target="_blank">here</a> to see some screenshots.</div>');
154 This is information about the CSS classes available to you to allow you to customise the appearance of tooltips and
159 <li><a href="#RGraph_png">RGraph_png</a></li>
160 <li><a href="#RGraph_palette">RGraph_palette</a></li>
161 <li><a href="#RGraph_tooltip">RGraph_tooltip</a></li>
162 <li><a href="#RGraph_contextmenu">RGraph_contextmenu</a></li>
163 <li><a href="#RGraph_contextmenu_item">RGraph_contextmenu_item</a></li>
164 <li><a href="#RGraph_contextmenu_background">RGraph_contextmenu_background</a></li>
165 <li><a href="#RGraph_zoom_window">RGraph_zoom_window</a></li>
166 <li><a href="#RGraph_zoomed_canvas">RGraph_zoomed_canvas</a></li>
167 <li><a href="#RGraph_zoomed_area">RGraph_zoomed_area</a></li>
168 <li><a href="#ModalDialog_background">ModalDialog_background</a></li>
169 <li><a href="#ModalDialog_dialog">ModalDialog_dialog</a></li>
170 <li><a href="#ModalDialog_topbar">ModalDialog_topbar</a></li>
171 <li><a href="#example">An example usage</a></li>
172 <li><a href="#important">! important</a></li>
175 <a name="RGraph_png"></a>
179 This controls the appearance of the PNG image which is shown when you use the context menu option <i>RGraph.showPNG()</i>.
182 <a name="RGraph_palette"></a>
184 <h2>RGraph_palette</h2>
186 This controls the appearance of the mini-palette that can be used with annotating.
189 <a name="RGraph_tooltip"></a>
191 <h2>RGraph_tooltip</h2>
193 This controls the appearance of tooltips. The default is to have them look like Windows tooltips.
196 <a name="RGraph_contextmenu"></a>
198 <h2>RGraph_contextmenu</h2>
200 This controls how context menus appear. The default is similar to the look that Windows XP has.
203 <a name="RGraph_contextmenu_item"></a>
205 <h2>RGraph_contextmenu_item</h2>
207 This controls how individual items on the context menu will appear, for example the default has roughly 25px padding-left
208 to accomodate the left bar.
211 <a name="RGraph_contextmenu_background"></a>
213 <h2>RGraph_contextmenu_background</h2>
215 This is the Windows XP style left vertical bar. By default this is light grey.
218 <a name="RGraph_zoom_window"></a>
220 <h2>RGraph_zoom_window</h2>
222 This is the class to use if you want to customise the mini-zoom window.
225 <a name="RGraph_zoomed_canvas"></a>
227 <h2>RGraph_zoomed_canvas</h2>
229 This is the class to use if you want to customise the full canvas zoom.
232 <a name="RGraph_zoomed_area"></a>
234 <h2>RGraph_zoomed_area</h2>
236 This is the class to use if you want to customise the zoomed area.
239 <a name="ModalDialog_background"></a>
241 <h2>ModalDialog_background</h2>
243 This class controls the dark semi-opaque background for the ModalDialog.
246 <a name="ModalDialog_dialog"></a>
248 <h2>ModalDialog_dialog</h2>
250 This class controls the ModalDialog itself.
253 <a name="ModalDialog_topbar"></a>
255 <h2>ModalDialog_topbar</h2>
257 This class controls the top bar for the ModalDialog. You could, for example, use the <i>display</i> CSS property to
258 hide this if you don't want it.
261 <a name="example"></a>
263 <h2>Example usage</h2>
265 Here is an example of using the CSS classes. At the time of writing, some of the items here were only implemented in newer
280 .RGraph_contextmenu {
283 .RGraph_contextmenu_background {
286 .RGraph_contextmenu_item {
289 .RGraph_zoom_window {
292 .RGraph_zoomed_canvas {
295 .RGraph_zoomed_area {
298 .ModalDialog_background {
301 .ModalDialog_dialog {
304 .ModalDialog_topbar {
309 <a name="important"></a>
314 If you're attempting to override default styles, then because of the ordering (ie the script is setting the style AFTER
315 your own CSS) you may need to use the "! important" modifier, for example:
321 background-color: white ! important;