Skip to content

Polar area chart not scaling on dataset hide #10337

@MarioMatschgi

Description

@MarioMatschgi

Expected behavior

If the user clicks on a label to filter/hide this dataset the diagram should:

  • Hide the slice
  • Radially scale the other slices to fill the gap
  • Change the scale from the center out of the other slices to fit the diagram

Current behavior

If the user clicks on a label to filter/hide this dataset the diagram should:

  • Hide the slice
  • Radially scale the other slices to fill the gap
  • The scale from the center DOES NOT GET CHANGED and the other slices STAY SMALL

image
image

Reproducible sample

https://www.chartjs.org/docs/latest/charts/polar.html

Optional extra steps/info to reproduce

Every Polar area chart is affected. The issue is especially noticeable when there are some really large values and some really small values.

Possible solution

Make the scale smaller/larger depending on what value the largest slice has to fit the available space

Context

No response

chart.js version

latest (v3.7.1)

Browser name and version

any

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions