odoo/o-spreadsheet#5335
Created by BI, Adrien Minne (adrm)
Merged
at aeb39a5deb56a34d3a54d21c046e8b514a751d98
Statuses:
- label
- odoo:master-tree-map-chart-adrm
- head
- 7cdf906386864ac61451b60a3549baa7ca2bb5d7
- merged
- 8 months ago by BI, Lucas Lefèvre (lul)
| odoo/o-spreadsheet | |
|---|---|
| master | #5335 |
Master tree map chart adrm
[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 callbackupdateStyle - rename
nameprops tolabelto be more explicit - use
ActionButtoncomponents 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