Project

General

Profile

Bug #31541

tooltip in trends charts not showing

Added by Adam Winberg 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Javascript foreman_statistics
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Hovering over a trends chart should show a tooltip displaying the value, but this does not work for me.

Checking the console in Firefox shows following javascript errors:

Uncaught TypeError: e.series.data[e.dataIndex] is undefined (charts-22b860e1a035af198d2ac41ebc27ca0c5f1ba6ec990484789938d290761aaed7.js:1:1473)
Uncaught TypeError: $(...).text(...).css(...).appendTo(...).zIndex is not a function (charts-22b860e1a035af198d2ac41ebc27ca0c5f1ba6ec990484789938d290761aaed7.js:1:2679)

This is on Foreman 2.3, but I'm pretty sure I've had this problem at least since updating to v2.


Related issues

Related to Statistics - Refactor #31594: Reactify Trends chartNew

History

#1 Updated by Adam Winberg 4 months ago

Easier to read console messages:

Uncaught TypeError: e.series.data[e.dataIndex] is undefined     (charts-22b860e1a035af198d2ac41ebc27ca0c5f1ba6ec990484789938d290761aaed7.js:1:1473)
Uncaught TypeError: $(...).text(...).css(...).appendTo(...).zIndex is not a function     (charts-22b860e1a035af198d2ac41ebc27ca0c5f1ba6ec990484789938d290761aaed7.js:1:2679)

#2 Updated by Ondřej Ezr 4 months ago

This is indeed an issue. I'd like to rewrite the charts to React, so we can drop flop charts in core.
So I'm not planning on fixing this myself.

#3 Updated by Ondřej Ezr 3 months ago

Also available in: Atom PDF