plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.19k stars 1.03k forks source link

Custom Index Name/Label in Nivo Bar Charts #1935

Closed BalajiGaneshK closed 2 years ago

BalajiGaneshK commented 2 years ago

Lets take the example given in nivo bar documentation

image

CodeSandBox link:https://codesandbox.io/s/000mv35lxn?file=/src/index.js

This bar chart is indexed by the "map" property inside each data object, i.e the various countries like RoL, DS,TA,NA,AF etc. So the index name is directly taken from the value of each "map" property and used.

I want to add a custom name to the index. For eg: instead of RoL , i want "Republic of Lemuria", instead of NA I want "North Atlantic" etc.

Is this currently possible in nivo ? @plouc

stale[bot] commented 2 years ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

khen-kovrr commented 2 years ago

bump

lenaxus commented 1 year ago

bump