chart2: support data table rendering when the X axis is swapped

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 16 August 2022 14:40 UTC

In case when the X axis is swapped, so the Y axis is rendered in the place of X axis, we need to render the data table below the Y-axis labels. This is best done to put the data table into the Y-axis instead, so we get the correct size and position of the data table, and then just allow rendering of the axis labels and (re)position the table below Y-axis.

Change-Id: I74aa79402a5638133b0d1ed83bbd8aad6f6c9d1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138336

addcd016bf1b chart2: support data table rendering when the X axis is swapped
chart2/source/view/axes/VAxisProperties.cxx | 13 +++++-
chart2/source/view/axes/VAxisProperties.hxx | 3 ++
chart2/source/view/axes/VCartesianAxis.cxx | 68 +++++++++++++++++-----------
chart2/source/view/axes/VCartesianAxis.hxx | 2 +
chart2/source/view/inc/DataTableView.hxx | 11 +++--
chart2/source/view/main/DataTableView.cxx | 69 ++++++++++++++++++++---------
6 files changed, 114 insertions(+), 52 deletions(-)

Upstream: cgit.freedesktop.org


  • Share