odoo/o-spreadsheet#7295

Created by fw-bot
Merged at 21c70cf74598db760342d29db5ff634eddc32449

Statuses:

label
odoo:19.0-18.0-chart-show-value-clip-adrm-469390-fw
head
27383afd530ac21acefc18e02b394ee5d5df5cc5
merged
5 days ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
18.0 #7225
saas-18.2 #7292
saas-18.3 #7293
saas-18.4 #7294
19.0 #7295
master #7296

[FIX] chart: clip show value text to chart area

Description

The text of the "Show Value" feature can go out of the chart and overlap with the legend/title. This commit clips the text to the chart area.

Task: 5125970

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_t("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo

Forward-Port-Of: #7225