Closed Bug 1632730 Opened 4 years ago Closed 4 years ago

Graph Y axis labels are truncated

Categories

(Tree Management :: Perfherder, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glandium, Assigned: bacasandrei)

References

()

Details

Attachments

(2 files)

Could you attach a screenshot and/or steps to reproduce? I'm not seeing the same thing on my end.

Flags: needinfo?(mh+mozilla)
Attached image Screenshot
Flags: needinfo?(mh+mozilla)
Severity: -- → S3
Severity: S3 → S4
Assignee: nobody → beatrice.acasandrei
Status: NEW → ASSIGNED
Priority: -- → P1

I can confirm that this bug is still reproducing. The minimum length of the labels should be at least 11 characters (excluding the floating point).

Could you please let me know which kind of approach I should consider in fixing this bug?

Flags: needinfo?(sclements)

We could represent the numbers in a different way, such that 100,000 becomes 100k? I'm not sure what to use to denote millions. Or we could use units of measurement, milliseconds, seconds, etc?

Flags: needinfo?(igoldan)

(In reply to Acasandrei Beatrice from comment #5)

Could you please let me know which kind of approach I should consider in fixing this bug?

Interesting, I'm not able to reproduce that - even when adjusting for different screen sizes.

This is where the left padding is calculated: https://github.com/mozilla/treeherder/blob/master/ui/perfherder/graphs/GraphsContainer.jsx#L243

But I wonder if this is a CSS/media query issue?

Mike, Beatrice when specifically are you seeing this? What device/screen size? Any page zooming involved?

Flags: needinfo?(sclements)

(In reply to Kimberly Sereduck :kimberlythegeek from comment #6)

We could represent the numbers in a different way, such that 100,000 becomes 100k? I'm not sure what to use to denote millions. Or we could use units of measurement, milliseconds, seconds, etc?

Indeed, this could be an option. I see we use the numeral package, which can do this kind of thing. I believe the formatting feature is called abbreviation.
E.g. for number 1460 with format '0 a', we'd get 1 K.

Flags: needinfo?(igoldan)
Flags: needinfo?(beatrice.acasandrei)

(In reply to Acasandrei Beatrice from comment #4)

I can confirm that this bug is still reproducing. The minimum length of the labels should be at least 11 characters (excluding the floating point).

Talking with Beatrice, we realized we haven't properly tested the Graphs view for these big values.
After a 2nd look, it seems the bug isn't reproducing. At least, not for the kind of data :glandium presented (series from build_metrics, on Windows & Linux platforms).

:glandium, are you ok with closing this as WORKSFORME? Or have you still encountered this bug lately?

Flags: needinfo?(beatrice.acasandrei) → needinfo?(mh+mozilla)
Assignee: beatrice.acasandrei → nobody
Status: ASSIGNED → NEW
Priority: P1 → P2

I've seen this a few weeks ago.

Flags: needinfo?(mh+mozilla)
Status: NEW → RESOLVED
Closed: 4 years ago
Priority: P2 → P1
Resolution: --- → FIXED
Assignee: nobody → beatrice.acasandrei
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: