Skip to content

PieChart not rendering #164

Open
Open

Description

@Kunal1985

Hi,
I am using the PieChart example but it is not rendering. Below the error in Browser console logs.
Error: attribute y1: Expected length, "NaN".
Error: attribute y2: Expected length, "NaN".
Error: attribute transform: Expected number, "rotate(NaN)".
Error: attribute transform: Expected number, "translate(NaN,NaN)".
Error: attribute transform: Expected number, "translate(NaN,NaN)".

Kindly suggest if i am missing something here.

Thanks,
Kunal

Activity

  1. asifsha commented on May 25, 2019

    @asifsha

    var sort = null;
    var dataPie = {
    label: 'somethingA',
    values: [{ x: 'SomethingA', y: 10 }, { x: 'SomethingB', y: 4 }, { x: 'SomethingC', y: 3 }]
    };

    <PieChart
    data={dataPie}
    width={600}
    height={400}
    margin={{ top: 10, bottom: 10, left: 100, right: 100 }}
    sort={sort}
    />

    image

    Worked for me, can you please try again?

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