Skip to content

PieChart hides label when data is unevenly distributed #172

Description

@carly-rw

Hi,

I am seeing what looks to be an error when the data used for a pie chart is heavy/skewed towards one particular category. The error is that the label for categories with fewer items in them are hidden. Example, a chart with categories containing [{ x: "example label", y: 1}, { x: "example label 2", y: 1 }, { x: "example label 3", y: 20 }, {...} ] will hide the labels for those with a y of 1. Increasing the size of the SVG does not seem to affect this in any way; only the relative distribution of the y values makes any difference to the labels appearing or not.

Ex,
Screen Shot 2019-05-28 at 10 52 08 AM

vs
Screen Shot 2019-05-28 at 10 52 34 AM

The way the data appears when the error is occurring looks like this:
Screen Shot 2019-05-28 at 10 55 29 AM

A fix or some guidance would be greatly appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions