Relationship Graph

Relationship Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0034848mantisbtreportspublic2024-10-22 09:43
Reporterdregad Assigned Todregad  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.28.0Fixed in Version2.28.0 
Summary0034848: MantisGraph: view all data values when hovering over line
Description

Currently when hovering above one of the data lines of the Issue Trends chart, a tooltip appears showing the actual value of the nearest point.

It can be difficult to get the corresponding values for the other datasets, particularly when there are many points on the graph, as is the case for our own tracker.

It would be useful to see all data points in the tooltip.

TagsNo tags attached.
Attached Files
image.png (49,637 bytes)   
image.png (49,637 bytes)   

Relationships

related to 0034847 resolveddregad Upgrade chart.js library to 3.9.1 

Activities

dregad

dregad

2024-10-12 15:45

developer   ~0069325

PR https://github.com/mantisbt/mantisbt/pull/2037

diedie2

diedie2

2024-10-21 10:00

reporter   ~0069373

Wouldn't it be nice/possible to let the values follow the mouse?

examples: https://lookerstudio.google.com/embed/u/0/reporting/c14a5cfc-cab7-4812-848c-0369173148ab/page/ZwmOB

dregad

dregad

2024-10-22 04:25

developer   ~0069378

Wouldn't it be nice/possible to let the values follow the mouse?

I'm not sure what you mean, the pop-up does follow the mouse

diedie2

diedie2

2024-10-22 05:20

reporter   ~0069379

Yes, but now you have to follow the (green in your example) line to accomplish that. In my example you can hover anywhere over the graph to see that.

dregad

dregad

2024-10-22 06:45

developer   ~0069380

Yes this can technically be done, adding intersect: true to the tooltip configuration.

That being said, this is a line graph, so following a data line makes sense to me. I'm not convinced there is added value in allowing hovering anywhere, particularly considering that the placement of the tooltip has only 2 options out of the box (nearest and average) causing it to feel somewhat random.

To be honest I don't feel like writing custom code to position it for example where the mouse pointer is. The vertical bar that appears in your example is nice too and may help understanding where the pop-up belongs, but this is also custom code.

diedie2

diedie2

2024-10-22 09:18

reporter   ~0069381

ok tnx for the information :-) I guess upgrading chart.js (0034847) might improve this already without doing a lot extra.

Related Changesets

MantisBT: master 21115a53

2024-10-12 13:47

dregad


Details Diff
Improve tooltip for Issue Trend chart

The tooltip now shows all 3 values when hovering over any line instead
of just the one from the nearest dataset.

Fixes 0034848
Affected Issues
0034848
mod - plugins/MantisGraph/files/MantisGraph.js Diff File