Add dynamic layout for axis label margins


Refactor the margin calculation code, so that AxisRenderer
itself calculates axis margins instead of GraphsView. This
allows for dynamically placing each axis depending on the
contents of the other axis. The feature is enabled with the
dynamicLabelMargins property in GraphsView. It is set to
false to preserve the default overlapping behavior of large
labels.

Some code generated with Claude Opus.

Task-number: QTBUG-144866
Change-Id: I2e3415f66549f8f0a65463e8e1ce88b2dd77da97
Reviewed-by: Alexei Cazacov <alexei.cazacov@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
commitde73bb3ecbf5fcc80eb82a5045240cfc1b119f44
parent6adf6a4b4668dc817cf7e8c2c582b1a46c5e0de4
authorJere Tuliniemi <jere.tuliniemi@qt.io>
committerJere Tuliniemi <jere.tuliniemi@qt.io>
commit timeThu, 21 May 2026 13:00:09 +0000