Integrated: 8427: Text getting overlapped on graph of Processes screen
Aymane Harmaz
aharmaz at openjdk.org
Tue Dec 2 15:52:16 UTC 2025
On Fri, 10 Oct 2025 16:09:39 GMT, Aymane Harmaz <aharmaz at openjdk.org> wrote:
> When the width of the chart title label exceeds the left margin ( xOffset) reserved for it, the label is truncated without taking into account the width of the y-axis tick labels. This can potentially lead to overlapping between the chart title and the y-axis tick labels.
>
> Currently, the width of the y-axis tick labels is determined at the formatter level and is not dynamically available during chart label truncation.
>
> Two potential workarounds are :
>
> - Increase the xOffset size for the affected chart, allocating enough space to display both the chart title and the tick labels without overlap.
> (This impacts only the chart in question.)
> - Base Chart title label truncation on a default value for y-axis tick labels, even without access to exact tick widths.
> (This impacts all charts.)
>
> I followed the first strategy.
>
> Screenshot of processes page post change :
>
> <img width="1173" height="343" alt="Screenshot 2025-10-10 at 17 02 40" src="https://github.com/user-attachments/assets/c490525f-b816-4bce-b242-621439ccf22e" />
This pull request has now been integrated.
Changeset: a7813947
Author: Aymane Harmaz <aharmaz at openjdk.org>
Committer: Marcus Hirt <hirt at openjdk.org>
URL: https://git.openjdk.org/jmc/commit/a7813947a380af6e707a0ddcb5ef9b686e334b99
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8427: Text getting overlapped on graph of Processes screen
Reviewed-by: hirt
-------------
PR: https://git.openjdk.org/jmc/pull/678
More information about the jmc-dev
mailing list