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

Kibana Cross Issues
elastic/kibana#171408
Checklist
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

Kibana Cross Issues
elastic/kibana#171408
Checklist
:xy,:partition):interactions,:axis)Kibana Cross Issueslist and thekibana cross issuetag is applied