Skip to content

Treemap doesn't handle the level with all zero value correctly. #2419

Closed

Description

@chaoteng

When we try to build a Treemap with the data which all children have 0 value, it will display the treemap with children overlapped. Is it more reasonable to show an empty treemap or a treemap with same-sized children.

The demo is here: http://jsfiddle.net/znfxLcn3/

Thank you for help.

Activity

  1. added
    bug
    on Oct 21, 2015
  2. added this to the 3.5.x milestone on Oct 21, 2015
  3. mbostock commented on Oct 21, 2015

    @mbostock
    Member

    Related #2420 (for d3.svg.pie).

  4. modified the milestones: 3.5.7, 3.5.x on Oct 22, 2015
  5. added a commit that references this issue on Nov 8, 2015
    7a46a88
  6. mbostock commented on Nov 8, 2015

    @mbostock
    Member

    Fix staged in #2591 for 3.5.7.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions