Giter Club home page Giter Club logo

Comments (11)

RParvathi avatar RParvathi commented on August 28, 2024 7

Hi, Is there a way to customize tooltip and colors for ResponsiveSunburst ? Could you please share an example if available. Also, is there a Legend option for the Sunburst ?

from nivo.

ramytamer avatar ramytamer commented on August 28, 2024 6

@plouc I know I am little bit late to the party, but can't I access the index or the x value in the tooltipFormat function beside the value/y ?

from nivo.

plouc avatar plouc commented on August 28, 2024 5

Unfortunately, it's not possible for now, but it's a feature I'm planing to add, because it's a "must have".

from nivo.

plouc avatar plouc commented on August 28, 2024 5

You can now format tooltip using tooltipFormat property, you can see it in action here

from nivo.

ramytamer avatar ramytamer commented on August 28, 2024 4

@riteshnus After a quick glance on the code it turns out that the tooltipFormat function is called with one argument (the y value).

I can work on a PR if @plouc would accept this feature.

from nivo.

lapidus avatar lapidus commented on August 28, 2024

Any updates on this one? Would be super nice to have a single tooltip per line and dot in the Line charts too. The 'stacked tooltip' becomes a bit bulky with 10+ lines. Can we help out somehow? πŸ‘
Thanks for a fabulous library! :)

from nivo.

ahtohbi4 avatar ahtohbi4 commented on August 28, 2024

@SammyIsra, it will be possible after releasing a new version with this PR. The feature already is available in the master branch for components Bar, Bubble, Chord, HeatMap, Line, Pie, Radar, Sankey and Stream.

If I understood your issue correctly. πŸ˜…

from nivo.

SammyIsra avatar SammyIsra commented on August 28, 2024

@ahtohbi4 it seems like that's exactly what I was asking for! It seems you guys have a React Storybook set. Is it public? I'd love to see how the custom tooltips look and work, if possible!

from nivo.

plouc avatar plouc commented on August 28, 2024

@SammyIsra, the storybook is available here: http://nivo.rocks/storybook/

from nivo.

riteshnus avatar riteshnus commented on August 28, 2024

@ramytamer did you find any hack to get the value x ?

from nivo.

riteshnus avatar riteshnus commented on August 28, 2024

@ramytamer Did you PR accepted? got any solution around it

from nivo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.