RFR: 8427: Text getting overlapped on graph of Processes screen
duke
duke at openjdk.org
Wed Oct 22 18:13:00 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" />
@aymane-harmaz
Your change (at version e6e197d259b47214ff458f5149bbd009e68f3f4e) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jmc/pull/678#issuecomment-3433598887
More information about the jmc-dev
mailing list