About
RGraph is a JavaScript charts library based on HTML5 SVG and canvas. RGraph is mature (over 15 years old) and has a wealth of features making it an ideal choice to show charts on your website.

More »

 

Download
Get the latest version of RGraph (version 6.17) from the download page. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

More »

 

License
RGraph can be used for free under the GPL or if that doesn't suit your situation there's an inexpensive (£99) commercial license available.

More »

Tootips do not close if the slide effect is used


Posted by Joachim at 12:47 on Friday 29th October 2021 [link]
hi,

just installed and tried v6.04. When using the default for tooltipsEffect "slide" tooltips do not close anymore once they have opened. What is the problem?

Posted by Richard at 13:09 on Friday 29th October 2021 [link]
Can you post a link to the page in question? What happens if you set the tooltipsEffect property back to "fade"? Is there any error message in the error console?

Posted by Joachim at 16:58 on Friday 29th October 2021 [link]
hi,
I've set (programmatically) default to fade. This sample uses "slide": https://www.jschmidt-systemberatung.de/index.php?option=com_content&view=article&id=212&Itemid=659&lang=en
(if you look at html-source you will find the setting of chart)

Posted by Joachim at 17:12 on Friday 29th October 2021 [link]
hi,
I've set (programmatically) default to fade. This sample uses "slide": https://www.jschmidt-systemberatung.de/index.php?option=com_content&view=article&id=212&Itemid=659&lang=en
(if you look at html-source you will find the setting of chart)

Posted by Richard at 18:56 on Friday 29th October 2021 [link]

Well, the problem appears to be the RGraph scripts that you're using:

<!-- I commented out these scripts -->
<!script src="https://www.jschmidt-systemberatung.de/media/plg_content_rgraph/js/php-rgraph.common.js" type="text/javascript"></script>
<!script src="https://www.jschmidt-systemberatung.de/media/plg_content_rgraph/js/RGraph.bar.js" type="text/javascript"></script>

<!-- And added these instead -->
<script src="/libraries/RGraph.common.core.js"></script>
<script src="/libraries/RGraph.common.dynamic.js"></script>
<script src="/libraries/RGraph.common.tooltips.js"></script>
<script src="/libraries/RGraph.bar.js"></script>

(Which are the JS libraries on my own website)

And it seems to be OK. Could it be that you didn't upgrade all the scripts to v6.04?

Posted by Joachim at 11:52 on Saturday 30th October 2021 [link]
hi,
found the problem (thanks for your hint). I've setup a "common" lib containing:
        "core",
        "tooltips",
        "dynamic",
        "effects",
        "key",
        "keyinteractive",
        "contextmenu",
        "csv",
        "annotate"
I had to remove lib "RGraph.common.annotate.js" as it caused the problem. Now option "slide" works fine.

[Replies are now closed]