o-spreadsheet icon indicating copy to clipboard operation
o-spreadsheet copied to clipboard

Master tree map chart adrm

Open hokolomopo opened this issue 1 year ago • 1 comments

[IMP] charts: add tree map chart

This commits adds the "treemap" chart type to display hierarchical data.

We use the library https://chartjs-chart-treemap.pages.dev/ that we patch a bit to have the render that we want.

[IMP] chart: add functionalities to TextStyler

Add the possibility of having a TextStyler that:

  • has no text input
  • can edit vertical algin
  • can edit text background color
  • made label optional

[REF] chart: simplify TextStyler component

This commit simplifies the TextStyler by

  • delete all the props updateColor, toggleBold, ... in favor of a single callback updateStyle
  • rename name props to label to be more explicit
  • use ActionButton components instead of custom HTML that looks like an action button

[MOV] chart: rename ChartTitle to TextStyler

Rename the ChartTitle component to TextStyler to make it sounds more generic and to prepare for the next commits.

Task: 4364295

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

hokolomopo avatar Dec 09 '24 11:12 hokolomopo

Pull request status dashboard

robodoo avatar Dec 09 '24 11:12 robodoo

Merge method set to rebase and fast-forward.

robodoo avatar Apr 23 '25 14:04 robodoo

robodoo r+

LucasLefevre avatar Apr 23 '25 14:04 LucasLefevre