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 - Common issues</title> |
---|
22 | |
---|
23 | <meta name="keywords" content="rgraph html5 canvas chart docs common issues" /> |
---|
24 | <meta name="description" content="RGraph: Javascript charts and graph library - Documentation about common issues" /> |
---|
25 | |
---|
26 | <meta property="og:title" content="RGraph: Javascript charts and graph library" /> |
---|
27 | <meta property="og:description" content="A charts library based on the HTML5 canvas tag" /> |
---|
28 | <meta property="og:image" content="http://www.rgraph.net/images/logo.jpg"/> |
---|
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 | <script src="../libraries/RGraph.common.core.js" ></script> |
---|
34 | |
---|
35 | <script> |
---|
36 | var _gaq = _gaq || []; |
---|
37 | _gaq.push(['_setAccount', 'UA-54706-2']); |
---|
38 | _gaq.push(['_trackPageview']); |
---|
39 | |
---|
40 | (function() { |
---|
41 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
---|
42 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
---|
43 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
---|
44 | })(); |
---|
45 | </script> |
---|
46 | |
---|
47 | </head> |
---|
48 | <body> |
---|
49 | |
---|
50 | |
---|
51 | <!-- Social networking buttons --> |
---|
52 | <div id="social_icons" class="warning" style="border-radius: 10px; top: 1px; position: fixed"> |
---|
53 | <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> |
---|
54 | <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> |
---|
55 | </div> |
---|
56 | |
---|
57 | <script> |
---|
58 | // Opera fix |
---|
59 | if (navigator.userAgent.indexOf('Opera') == -1) { |
---|
60 | document.getElementById("social_icons").style.position = 'fixed'; |
---|
61 | } |
---|
62 | </script> |
---|
63 | <!-- Social networking buttons --> |
---|
64 | |
---|
65 | <div id="breadcrumb"> |
---|
66 | <a href="../index.html">RGraph: Javascript charts and graph library</a> |
---|
67 | > |
---|
68 | <a href="index.html">Documentation</a> |
---|
69 | > |
---|
70 | Common issues |
---|
71 | </div> |
---|
72 | |
---|
73 | <h1>RGraph: <span>Javascript charts and graph library</span> - Common issues</h1> |
---|
74 | |
---|
75 | <script> |
---|
76 | if (RGraph.isIE8()) { |
---|
77 | 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>'); |
---|
78 | } |
---|
79 | </script> |
---|
80 | |
---|
81 | <div style="text-align: center"> |
---|
82 | <span style="background-color: #efe; padding: 3px; border: 1px solid black; border-radius: 15px; padding-left: 10px; padding-right: 10px"> |
---|
83 | <b> |
---|
84 | Join the support forum: |
---|
85 | <a href="http://support.rgraph.net">http://support.rgraph.net</a> |
---|
86 | </b> |
---|
87 | </span> |
---|
88 | </div> |
---|
89 | |
---|
90 | <p> |
---|
91 | These are some common issues that you should be aware of. If you're having trouble, you may want to look through these to see |
---|
92 | if any apply to you or may be the source of your problem. |
---|
93 | </p> |
---|
94 | |
---|
95 | <a name="tooltips"></a> |
---|
96 | <h4>Tooltips not working as of the October 2010 release</h4> |
---|
97 | |
---|
98 | <p> |
---|
99 | If you're specifying numbers instead of strings for your tooltips, they will not work any more. Simply cast them to |
---|
100 | strings, like this: |
---|
101 | </p> |
---|
102 | |
---|
103 | <pre class="code"> |
---|
104 | <span style="color: red"> |
---|
105 | // This WILL NOT work any more |
---|
106 | myBar.Set('chart.tooltips', [56, 67, 53]); |
---|
107 | </span> |
---|
108 | <span style="color: green"> |
---|
109 | // Do any of these instead |
---|
110 | myBar.Set('chart.tooltips', ['56', (67).toString(), String(53)]);</span> |
---|
111 | </pre> |
---|
112 | |
---|
113 | <a name="annotations"></a> |
---|
114 | <h4>Annotations aren't saved when running locally in Mozilla Firefox</h4> |
---|
115 | |
---|
116 | <p> |
---|
117 | The solution here is to run the charts using a web server. At this time (March 2010) only Safari, Chrome and Opera |
---|
118 | support saving annotations when running locally. |
---|
119 | </p> |
---|
120 | |
---|
121 | <a name="missing.text"></a> |
---|
122 | <h4>Missing text in Google Chrome</h4> |
---|
123 | |
---|
124 | <p> |
---|
125 | Since one of the Chrome 4 dev releases there has been an issue with Google Chrome 4 and 5, asynchronous processing and not rendering |
---|
126 | chart labels. This has been remedied by simply not using asynchronous processing. Because of the tag placement on the front page, |
---|
127 | the effect shouldn't be apparent. Other browsers (eg Firefox, Safari, Opera, MSIE) are fine. |
---|
128 | </p> |
---|
129 | |
---|
130 | <p> |
---|
131 | <b>Update:</b> Currently, (roughly March 2011), the missing text issue appears to be much less evident, if not resolved entirely. |
---|
132 | </p> |
---|
133 | |
---|
134 | <a name="firefox.tooltips.clipboard"></a> |
---|
135 | <h4>Firefox, tooltips and the clipboard</h4> |
---|
136 | |
---|
137 | <p> |
---|
138 | Firefox, tooltips and using the clipboard is a little convoluted. To copy the text in a tooltip you must do the following: |
---|
139 | </p> |
---|
140 | |
---|
141 | <ol> |
---|
142 | <li style="margin-top: 0">Select the text you want with the mouse.</li> |
---|
143 | <li style="margin-top: 0">Press CTRL+C (it may be a different key combination if you're not using Windows) to copy the text to the clipboard.</li> |
---|
144 | </ol> |
---|
145 | |
---|
146 | <p> |
---|
147 | <b>Note:</b> Recent versions of Firefox 4 (from beta 6 onwards) appear to work as expected, and you can copy text with the mouse as normal. |
---|
148 | </p> |
---|
149 | |
---|
150 | <h4>Shadows in Google Chrome and the line chart</h4> |
---|
151 | |
---|
152 | <p> |
---|
153 | Shadows in recent versions of Google Chrome are somewhat broken. Firefox, MSIE, Opera and Safari are fine. The reason for this |
---|
154 | error is a combination of factors it seems - shadow blurring and line width. Fixes have been added to allow shadow blurring and |
---|
155 | a 1 pixel linewidth, though some chart types may still be affected. |
---|
156 | </p> |
---|
157 | |
---|
158 | <!-- |
---|
159 | |
---|
160 | <p> |
---|
161 | <b></b><br /> |
---|
162 | </p> |
---|
163 | --> |
---|
164 | |
---|
165 | </body> |
---|
166 | </html> |
---|