Nivo: Using an icon as pie chart label.

Created on 11 Jul 2019  路  5Comments  路  Source: plouc/nivo

Hi,
Like I wrote in a topic, is it possible?
I am trying to use icon from material ui library.
But I can print it only in a tooltip, labels are empty.

Thanks.

pie question feature request

Most helpful comment

It's not feasible for legends, I'll have to check for labels

All 5 comments

The custom pie tooltip must be implemented, which is not yet the case. I'm closing this in favor of https://github.com/plouc/nivo/issues/597

Uhmm, sorry but I cannot find an answer for my question. I am NOT talking about tooltip.
Tooltip is fine, I can custom it. But I mean that, what if I'd like to use some icons (img, svg, or library) to represent some data as a LABEL (and display it in a legend). It is possible?

Oh, sorry I missed that

It's not feasible for legends, I'll have to check for labels

https://github.com/plouc/nivo/pull/1204 is adding support for custom layers, which is gonna add the ability to add an extra layer with icons.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danpettay picture danpettay  路  3Comments

serendipity1004 picture serendipity1004  路  3Comments

zhe1ka picture zhe1ka  路  3Comments

pratikguru picture pratikguru  路  3Comments

Haaziq-Uvais picture Haaziq-Uvais  路  3Comments