[77] | 1 | <?php ob_start('ob_gzhandler') ?> |
---|
| 2 | <!DOCTYPE html > |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="X-UA-Compatible" content="chrome=1"> |
---|
| 6 | <!-- |
---|
| 7 | /** |
---|
| 8 | * o------------------------------------------------------------------------------o |
---|
| 9 | * | This file is part of the RGraph package - you can learn more at: | |
---|
| 10 | * | | |
---|
| 11 | * | http://www.rgraph.net | |
---|
| 12 | * | | |
---|
| 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: | |
---|
| 16 | * | | |
---|
| 17 | * | http://www.rgraph.net/LICENSE.txt | |
---|
| 18 | * o------------------------------------------------------------------------------o |
---|
| 19 | */ |
---|
| 20 | --> |
---|
| 21 | <title>RGraph: Javascript charts and graph library - available CSS classes</title> |
---|
| 22 | |
---|
| 23 | <meta name="keywords" content="rgraph html5 canvas charts docs css classes" /> |
---|
| 24 | <meta name="description" content="RGraph: Javascript charts and graph library - Documentation about RGraph CSS classes" /> |
---|
| 25 | |
---|
| 26 | <meta property="og:title" content="RGraph: Javascript charts and graph library" /> |
---|
| 27 | <meta property="og:description" content="A graph library based on the HTML5 canvas tag" /> |
---|
| 28 | <meta property="og:image" content="http://www.rgraph.net/images/logo.png"/> |
---|
| 29 | |
---|
| 30 | <link rel="stylesheet" href="../css/website.css" type="text/css" media="screen" /> |
---|
| 31 | <link rel="icon" type="image/png" href="../images/favicon.png"> |
---|
| 32 | |
---|
| 33 | <style type="text/css"> |
---|
| 34 | li { |
---|
| 35 | margin: 0 ! important; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | li a { |
---|
| 39 | text-decoration: none; |
---|
| 40 | } |
---|
| 41 | </style> |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | <script> |
---|
| 45 | var _gaq = _gaq || []; |
---|
| 46 | _gaq.push(['_setAccount', 'UA-54706-2']); |
---|
| 47 | _gaq.push(['_trackPageview']); |
---|
| 48 | |
---|
| 49 | (function() { |
---|
| 50 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
---|
| 51 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
---|
| 52 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
---|
| 53 | })(); |
---|
| 54 | </script> |
---|
| 55 | </head> |
---|
| 56 | <body> |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | <!-- Social networking buttons --> |
---|
| 60 | <div id="social_icons" class="warning" style="border-radius: 10px; top: 1px; position: fixed"> |
---|
| 61 | <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%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> |
---|
| 62 | <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> |
---|
| 63 | </div> |
---|
| 64 | |
---|
| 65 | <script> |
---|
| 66 | // Opera fix |
---|
| 67 | if (navigator.userAgent.indexOf('Opera') == -1) { |
---|
| 68 | document.getElementById("social_icons").style.position = 'fixed'; |
---|
| 69 | } |
---|
| 70 | </script> |
---|
| 71 | <!-- Social networking buttons --> |
---|
| 72 | |
---|
| 73 | <div id="breadcrumb"> |
---|
| 74 | <a href="../index.html">RGraph: Javascript charts and graph library</a> |
---|
| 75 | > |
---|
| 76 | <a href="index.html">Documentation</a> |
---|
| 77 | > |
---|
| 78 | Available CSS classes |
---|
| 79 | </div> |
---|
| 80 | |
---|
| 81 | <h1>RGraph: <span>Javascript charts and graph library</span> - Available CSS classes</h1> |
---|
| 82 | |
---|
| 83 | <script> |
---|
| 84 | if (RGraph.isIE8()) { |
---|
| 85 | 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>'); |
---|
| 86 | } |
---|
| 87 | </script> |
---|
| 88 | |
---|
| 89 | <p> |
---|
| 90 | This is information about the CSS classes available to you to allow you to customise the appearance of tooltips and |
---|
| 91 | context menus. |
---|
| 92 | </p> |
---|
| 93 | |
---|
| 94 | <ul> |
---|
| 95 | <li><a href="#RGraph_png">RGraph_png</a></li> |
---|
| 96 | <li><a href="#RGraph_palette">RGraph_palette</a></li> |
---|
| 97 | <li><a href="#RGraph_tooltip">RGraph_tooltip</a></li> |
---|
| 98 | <li><a href="#RGraph_contextmenu">RGraph_contextmenu</a></li> |
---|
| 99 | <li><a href="#RGraph_contextmenu_item">RGraph_contextmenu_item</a></li> |
---|
| 100 | <li><a href="#RGraph_contextmenu_background">RGraph_contextmenu_background</a></li> |
---|
| 101 | <li><a href="#RGraph_zoom_window">RGraph_zoom_window</a></li> |
---|
| 102 | <li><a href="#RGraph_zoomed_canvas">RGraph_zoomed_canvas</a></li> |
---|
| 103 | <li><a href="#RGraph_zoomed_area">RGraph_zoomed_area</a></li> |
---|
| 104 | <li><a href="#ModalDialog_background">ModalDialog_background</a></li> |
---|
| 105 | <li><a href="#ModalDialog_dialog">ModalDialog_dialog</a></li> |
---|
| 106 | <li><a href="#ModalDialog_topbar">ModalDialog_topbar</a></li> |
---|
| 107 | <li><a href="#example">An example usage</a></li> |
---|
| 108 | <li><a href="#important">! important</a></li> |
---|
| 109 | </ul> |
---|
| 110 | |
---|
| 111 | <a name="RGraph_png"></a> |
---|
| 112 | <br /> <br /> |
---|
| 113 | <h2>RGraph_png</h2> |
---|
| 114 | <p> |
---|
| 115 | This controls the appearance of the PNG image which is shown when you use the context menu option <i>RGraph.showPNG()</i>. |
---|
| 116 | </p> |
---|
| 117 | |
---|
| 118 | <a name="RGraph_palette"></a> |
---|
| 119 | <br /> <br /> |
---|
| 120 | <h2>RGraph_palette</h2> |
---|
| 121 | <p> |
---|
| 122 | This controls the appearance of the mini-palette that can be used with annotating. |
---|
| 123 | </p> |
---|
| 124 | |
---|
| 125 | <a name="RGraph_tooltip"></a> |
---|
| 126 | <br /> <br /> |
---|
| 127 | <h2>RGraph_tooltip</h2> |
---|
| 128 | <p> |
---|
| 129 | This controls the appearance of tooltips. The default is to have them look like Windows tooltips. |
---|
| 130 | </p> |
---|
| 131 | |
---|
| 132 | <a name="RGraph_contextmenu"></a> |
---|
| 133 | <br /> <br /> |
---|
| 134 | <h2>RGraph_contextmenu</h2> |
---|
| 135 | <p> |
---|
| 136 | This controls how context menus appear. The default is similar to the look that Windows XP has. |
---|
| 137 | </p> |
---|
| 138 | |
---|
| 139 | <a name="RGraph_contextmenu_item"></a> |
---|
| 140 | <br /> <br /> |
---|
| 141 | <h2>RGraph_contextmenu_item</h2> |
---|
| 142 | <p> |
---|
| 143 | This controls how individual items on the context menu will appear, for example the default has roughly 25px padding-left |
---|
| 144 | to accomodate the left bar. |
---|
| 145 | </p> |
---|
| 146 | |
---|
| 147 | <a name="RGraph_contextmenu_background"></a> |
---|
| 148 | <br /> <br /> |
---|
| 149 | <h2>RGraph_contextmenu_background</h2> |
---|
| 150 | <p> |
---|
| 151 | This is the Windows XP style left vertical bar. By default this is light grey. |
---|
| 152 | </p> |
---|
| 153 | |
---|
| 154 | <a name="RGraph_zoom_window"></a> |
---|
| 155 | <br /> <br /> |
---|
| 156 | <h2>RGraph_zoom_window</h2> |
---|
| 157 | <p> |
---|
| 158 | This is the class to use if you want to customise the mini-zoom window. |
---|
| 159 | </p> |
---|
| 160 | |
---|
| 161 | <a name="RGraph_zoomed_canvas"></a> |
---|
| 162 | <br /> <br /> |
---|
| 163 | <h2>RGraph_zoomed_canvas</h2> |
---|
| 164 | <p> |
---|
| 165 | This is the class to use if you want to customise the full canvas zoom. |
---|
| 166 | </p> |
---|
| 167 | |
---|
| 168 | <a name="RGraph_zoomed_area"></a> |
---|
| 169 | <br /> <br /> |
---|
| 170 | <h2>RGraph_zoomed_area</h2> |
---|
| 171 | <p> |
---|
| 172 | This is the class to use if you want to customise the zoomed area. |
---|
| 173 | </p> |
---|
| 174 | |
---|
| 175 | <a name="ModalDialog_background"></a> |
---|
| 176 | <br /> <br /> |
---|
| 177 | <h2>ModalDialog_background</h2> |
---|
| 178 | <p> |
---|
| 179 | This class controls the dark semi-opaque background for the ModalDialog. |
---|
| 180 | </p> |
---|
| 181 | |
---|
| 182 | <a name="ModalDialog_dialog"></a> |
---|
| 183 | <br /> <br /> |
---|
| 184 | <h2>ModalDialog_dialog</h2> |
---|
| 185 | <p> |
---|
| 186 | This class controls the ModalDialog itself. |
---|
| 187 | </p> |
---|
| 188 | |
---|
| 189 | <a name="ModalDialog_topbar"></a> |
---|
| 190 | <br /> <br /> |
---|
| 191 | <h2>ModalDialog_topbar</h2> |
---|
| 192 | <p> |
---|
| 193 | This class controls the top bar for the ModalDialog. You could, for example, use the <i>display</i> CSS property to |
---|
| 194 | hide this if you don't want it. |
---|
| 195 | </p> |
---|
| 196 | |
---|
| 197 | <a name="example"></a> |
---|
| 198 | <br /> <br /> |
---|
| 199 | <h2>Example usage</h2> |
---|
| 200 | <p> |
---|
| 201 | Here is an example of using the CSS classes. At the time of writing, some of the items here were only implemented in newer |
---|
| 202 | web browsers: |
---|
| 203 | </p> |
---|
| 204 | |
---|
| 205 | <pre class="code"> |
---|
| 206 | <style> |
---|
| 207 | .RGraph_png { |
---|
| 208 | } |
---|
| 209 | |
---|
| 210 | .RGraph_palette { |
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | .RGraph_tooltip { |
---|
| 214 | } |
---|
| 215 | |
---|
| 216 | .RGraph_contextmenu { |
---|
| 217 | } |
---|
| 218 | |
---|
| 219 | .RGraph_contextmenu_background { |
---|
| 220 | } |
---|
| 221 | |
---|
| 222 | .RGraph_contextmenu_item { |
---|
| 223 | } |
---|
| 224 | |
---|
| 225 | .RGraph_zoom_window { |
---|
| 226 | } |
---|
| 227 | |
---|
| 228 | .RGraph_zoomed_canvas { |
---|
| 229 | } |
---|
| 230 | |
---|
| 231 | .RGraph_zoomed_area { |
---|
| 232 | } |
---|
| 233 | |
---|
| 234 | .ModalDialog_background { |
---|
| 235 | } |
---|
| 236 | |
---|
| 237 | .ModalDialog_dialog { |
---|
| 238 | } |
---|
| 239 | |
---|
| 240 | .ModalDialog_topbar { |
---|
| 241 | } |
---|
| 242 | </style> |
---|
| 243 | </pre> |
---|
| 244 | |
---|
| 245 | <a name="important"></a> |
---|
| 246 | <br /> <br /> |
---|
| 247 | <h2>! important</h2> |
---|
| 248 | |
---|
| 249 | <p> |
---|
| 250 | If you're attempting to override default styles, then because of the ordering (ie the script is setting the style AFTER |
---|
| 251 | your own CSS) you may need to use the "! important" modifier, for example: |
---|
| 252 | </p> |
---|
| 253 | |
---|
| 254 | <pre class="code"> |
---|
| 255 | <style> |
---|
| 256 | .RGraph_tooltip { |
---|
| 257 | background-color: white ! important; |
---|
| 258 | } |
---|
| 259 | </style> |
---|
| 260 | </pre> |
---|
| 261 | </body> |
---|
| 262 | </html> |
---|