MENU
.net Powerful JavaScript charts
About
RGraph is a JavaScript charts library based on HTML5 SVG and canvas. RGraph is mature (over 17 years old) and has a wealth of features making it an ideal choice to use for showing charts on your website.

More »

 

New datagrid in v6.21
In version 6.21 a new datagrid object has been added. This makes it easy to add static or dynamic data tables to your pages. It can be used whether you use the canvas or SVG libraries or entirely standalone.

Read more »

 

Download
Get the latest version of RGraph (version 6.21, 10th April 2025) from the download page. You can read the changelog here. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

Download »

 

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

More »

I have a problem with the tooltips layout and the tooltip pointers


Posted by Joachim at 15:21 on Saturday 29th June 2024 [link]
hi,

With the new version the arrow of tooltips do not display correctly - e.g. outline is missing.
Poperty "tooltipsCssClass": "rgraph_tooltips" seems not to work as it did with 6.17.
Can you pls. check,
Thank you!

Posted by Richard at 16:38 on Saturday 29th June 2024 [link]
Can you post a minimal example that reproduces this please?

Posted by Joachim at 16:59 on Saturday 29th June 2024 [link]
Hi,
I found that with v6.18 you append the canvas -id to "RGraph_tooltipsPointer". E.g. if your canvas is "my_cvs" then the id for the tooltips pointer is set to "RGraph_tooltipsPointer_my_cvs".
If the used css had settings for "#RGraph_tooltipsPointer" this will not be used any more.
How can you fix this?

you may see samples at https://www.jschmidt-systemberatung.de/index.php?option=com_jphpx&view=application&fileid=9&lang=en&Itemid=652

Posted by Richard at 18:02 on Saturday 29th June 2024 [link]
The canvas ID was added to the tooltip ID to make it feasible to have different CSS for different charts' tooltips when you have multiple on one page.

If you're not bothered about this then you could make a slight alteration to your CSS selector and use a regex selector like this:

<style>
    div.RGraph_tooltip div[id^=RGraph_tooltipsPointer] {
        background-color: red !important;
    }
</style>

Or if you don't use any <div> tags in your tooltips:

<style>
    div.RGraph_tooltip div {
        background-color: red !important;
    }
</style>

I appear to have not mentioned this in the changelog - sorry about that!

[Replies are closed]