o-spreadsheet
o-spreadsheet copied to clipboard
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
Merge method set to rebase and fast-forward.
robodoo r+
