odoo/o-spreadsheet#7225

Created by BI, Adrien Minne (adrm)
Merged at ff8bba956d7e676bb3af9c5082c345fc42afed4f

Statuses:

label
odoo:18.0-chart-show-value-clip-adrm
head
4220f7f2a2c4755d8f6ef46f3df497afd687d726
merged
2 days ago by BI, Rémi Rahir (rar)
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