Nivo: Render treemap internal nodes labels

Created on 25 Sep 2018  路  2Comments  路  Source: plouc/nivo

The <Treemap /> component renders a label for every leaf node, but the user must hover above a small area to show an internal node tooltip . It would be very useful (specially for printing purposes) to have the ability to render a label on every node. Maybe on the top left corner for internal nodes.

Something like this:

treemap enhancement

Most helpful comment

Implemented with https://github.com/plouc/nivo/pull/555, we can now use a parent label and adjust its position, it'll be available in the next release.

All 2 comments

I agree it could be really useful, however d3 layout doesn't support this natively, and you also have the ability to automatically orient labels depending on the width/height ratio of the cell, I'm afraid it will require a bit of work.

Implemented with https://github.com/plouc/nivo/pull/555, we can now use a parent label and adjust its position, it'll be available in the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ellipticaldoor picture ellipticaldoor  路  4Comments

PattieC4ke picture PattieC4ke  路  3Comments

indvstry picture indvstry  路  3Comments

stahlmanDesign picture stahlmanDesign  路  3Comments

gcloeval picture gcloeval  路  3Comments