Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] charts: disable legend for single dataset #4600

Closed
wants to merge 1 commit into from

Conversation

anhe-odoo
Copy link
Contributor

Task Description

When drawing a chart with only one dataset, we are allowed to choose the position of the legend but no legend will appears even after changing the position. This commit aims to fix thie issue, disabling the select box allowing to change the legend position.

The chart padding has also been adapted to have more padding when there is no title/legend.

Related Task

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

@robodoo
Copy link
Collaborator

robodoo commented Jul 5, 2024

Pull request status dashboard

@anhe-odoo anhe-odoo force-pushed the master-chart-disable_legend-anhe branch 2 times, most recently from be39eee to 1fab50c Compare July 8, 2024 12:51
Copy link
Collaborator

@pro-odoo pro-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a little detail

src/helpers/figures/charts/chart_common.ts Outdated Show resolved Hide resolved
@anhe-odoo anhe-odoo force-pushed the master-chart-disable_legend-anhe branch from 1fab50c to d61e342 Compare July 22, 2024 13:25
Copy link
Contributor

@hokolomopo hokolomopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add some tests on the chart padding, and It'll be good :)

Task Description

When drawing a chart with only one dataset, we are allowed to
choose the position of the legend but no legend will appears even
after changing the position. This commit aims to fix thie issue,
disabling the select box allowing to change the legend position.

The chart padding has also been adapted to have more padding when
there is no title/legend.

Related Task

Task: 4028903
@anhe-odoo anhe-odoo force-pushed the master-chart-disable_legend-anhe branch from d61e342 to 90e1154 Compare July 25, 2024 15:35
Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robodoo r+

robodoo pushed a commit that referenced this pull request Jul 29, 2024
Task Description

When drawing a chart with only one dataset, we are allowed to
choose the position of the legend but no legend will appears even
after changing the position. This commit aims to fix thie issue,
disabling the select box allowing to change the legend position.

The chart padding has also been adapted to have more padding when
there is no title/legend.

Related Task

closes #4600

Task: 4028903
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo closed this Jul 29, 2024
@robodoo robodoo added the 17.5 label Jul 29, 2024
@fw-bot fw-bot deleted the master-chart-disable_legend-anhe branch August 12, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants