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>