Skip to content

Pie chart throw if outerRadius is zero or negative #2272

@markov00

Description

@markov00

Describe the issue

When a pie chart with legend is shrinked a lot (down to ~20pixel in height) the Canvas functions throws an error related to rendering a negative arc radius.
This blocks the rendering and nothing but a page refresh can restore the rendering.

Expected behaviour
The chart should not throw and should rerender when the size is back to normal

Errors in browser console
Screenshot 2023-12-06 at 15 23 40

Kibana Cross Issues
elastic/kibana#171408

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • Every related Kibana issue is listed under Kibana Cross Issues list and the kibana cross issue tag is applied

Metadata

Metadata

Assignees

No one assigned

    Labels

    :dataData/series/scales related issue:partitionPartition/PieChart/Donut/Sunburst/Treemap chart relatedbugSomething isn't workingkibana cross issueHas a Kibana issue counterpart

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions