When trying to include more than one graph in a report or embedded in a page, the tooltips are only displayed for the first graph to be drawn. The tooltips work fine for the individual graphs, but once more than one graph is drawn the tooltip only works for the first to be drawn. I've looked at the source code and it appears like the script & tooltip are only created for the first graph (see attached screenshot).

Is there any way to get around this problem?

Comments

turcanuandrei created an issue. See original summary.

metzlerd’s picture

Status: Active » Needs review
StatusFileSize
new842 bytes

Here is a patch that should correct this problem. Looks like I had some code to only include the javascript once. I have a vague recollection that this code was included due to a bug in older versions of the graphing library but it looks like those have been fixed in current versions.

turcanuandrei’s picture

Thanks a lot for the quick reply. I applied your patch and it works perfectly fine now.

  • dba5143 committed on
    Issue #2623528 by metzlerd: Tooltip only works for first graph in...

  • dba5143 committed on 7.x-5.x
    Issue #2623528 by metzlerd: Tooltip only works for first graph in...
metzlerd’s picture

Status: Needs review » Fixed

You're Welcom.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.