Closed plouc closed 3 years ago
any updates about @nivo/line ResponsiveLine ? Thanks
Support for line https://github.com/plouc/nivo/pull/258
Any chance jbenua's PR will be merged soon and a release is made available?
+1! Having custom tooltip on the line chart is really crucial.
PR for line has been merged.
PR for ScatterPlot => https://github.com/plouc/nivo/pull/255
PR merged for ScatterPlot support.
Hi, I'd greatly appreciate custom tooltip support for the Sunburst component.
Any Update's about the ResponsiveChord custom Tooltip.
Thanks
@plouc Does this issue also include the ability to custom the tooltip's position calculation (for example, to make it so that it positions itself relative to the hovered element rather than the mouse position)? Should I file a separate issue for that? I didn't see an easy way to override what's being done here: https://github.com/plouc/nivo/blob/262a8ee96bb870fe388e64d1453248aed94bf445/packages/core/src/components/Container.js#L45 . Happy to send a PR for that if you point me in your desired direction :)
Any update on @nivo/bullet? I don't even see it there?
@plouc Can you please update if custom tooltips are available for ResponsiveChord?
@conanak99, not yet available for bullet, @rudyStrikes the status is up-to-date :)
Is there any way of change this tooltip wrapper padding?
@solutweb, you can use the theme for this: tooltip.container.padding
Custom tooltips support added for @nivo/chord
=> https://github.com/plouc/nivo/pull/526
Hi @plouc, Just checking on the status of custom tooltips for radar charts. Thank you for your work on this library. π
Alternatively, is there an option to hide the tooltip for radar charts?
Update:
If someone had the same problem, just change the isInteractive
flag to false
. Until there is no possibility of tooltip customization, it should solve the problem.
Hi @plouc, Was wondering the status of custom tooltips for Responsive Sunburst / Sunburst chart. The library is awesome by the way.
Do custom tooltips work with ResponsivePieCanvas? I can't get them to work on 0.58.0, and I see it is not on the list, but the docs seem to suggest it is supported.
It is also not obvious from the docs that you can include data other than id, value, label, and color if you had other properties in your array of data (which might be useful to note).
Quick question, I have already done the custom Tooltip, however, I want to disallow tooltips for certain bars (BarChart). Even if I return null, it still renders a small tiny square. Any way to remove that?
@piltsen, which component are you using? I've removed the wrapper on some components, but others still have it.
@piltsen For now it seems you can set theme.tooltip.container or theme.tooltip.container.padding to null. It might still trigger a render, but it doesn't seem to show up.
@jarodhanko, you're right, it might work, thank you.
@piltsen, which component are you using? I've removed the wrapper on some components, but others still have it.
@plouc I am using ResponsiveBar
@jarodhanko I am new to this, how can I set the theme? in the tooltip?
@plouc @jarodhanko I figured it out. Thanks for your help. Cheers
@plouc On tooltips still, is it possible to force the tooltip to always appear below the mouse? It seems that the tooltip dynamically chooses based on the position of the mouse inside the SVG. Thanks
@piltsen
It looks like the values for "right" and "bottom" positioning are automatically calculated somehow using mouse position. It appears you can override them using any common css values, but if you want them positioned correctly you can't change the right or bottom positioning. I don't know if there is a correct way to do it, or a way to make it consistent. I was able to make it kind of work, although the padding between the mouse pointer and the tooltip is inconsistent. It might help you figure something out though. Modify theme.tooltip.container (and/or theme.tooltip) to adjust it.
"theme": {
"tooltip": {
"container":{
"position": "absolute",
"left": "50%",
"transform": "translateX(-50%)",
"margin-top": 25
}
}
}
@piltsen, it's not possible for now, but there are few opened issues about tooltip positioning, I'm thinking of adding a way to control this, but I don't have much time to work on nivo for now.
@jarodhanko I'm using nivo line chart. I'm trying to access the tooltip container's position like below.
theme={{ tooltip: { container: { position: "fixed" } } }}
But this doesn't seem to work.
EDIT : What I'm trying to do here is to give a fixed position to the custom tooltip and get the tooltip out of the chart container. But the problem here is i can't access the container
attribute of the tooltip. Seems like it's getting overridden
Does this support grouped tooltip? Say I use grouped bar chart, I want the tooltip to show up per group.
Would be great to have this for Bullet :)
Any progress on the custom tooltip for Bullet? My team would love to use it once its available!
How can I disable the tooltip?
@j-avila You can set isInteractive={false}
prop.
@vinayshah1998 not yet unfortunately
bump
Thanks for the bump @vinayshah1998. I put a label on so it won't go stale again.
Would be good to have this for Stream. π
Would be good to have this for Bullet. π
Would be awesome to have this for Radar too π
I have a Scatterplot chart where I need a tooltip to only appear when mouse is over the particular "dot" on the chart. On "ScatterPlot", I'm able to achieve this by using "useMesh=false". On "ScatterPlotCanvas" that option has no effect on tooltip, and tooltip is visible no matter where the mouse is on the chart. Can someone suggest if this is possible on "ScatterPlotCanvas" or "ResponsiveScatterPlotCanvas"? Posting it here, as it seems to be related to unsupported tooltip behaviour.
It would be great to have this for the Radar. It would allow users to work around the single maxValue property. In my case, I scaled down relevant metrics so that they are always between 0 and 1, but I cannot display unscaled values on tooltips.
@wyze @plouc wondering what are the plans for next release, as I'd be interested on using custom tooltip for Bullet.
Thanks!
I'm also in need for the bullet custom tooltip. TY
Support added for @nivo/stream
via https://github.com/plouc/nivo/pull/1721.
@jquintozamora, @ChuckJonas, I'll try to release this week, sorry for the delay.
Support added for @nivo/radar
, the list is now complete.
@nivo/scatterplot ResponsiveScatterPlotCanvas
is missing the support for custom tooltip.
also @nivo/radialbar ResponsiveRadialBar is missing the support for custom tooltip
Allowing custom tooltips has been requested several times:
https://github.com/plouc/nivo/issues/117 | https://github.com/plouc/nivo/issues/186 | https://github.com/plouc/nivo/issues/120
This issue is used to track down the ongoing implementation of custom tooltips on all nivo packages/components:
@nivo/bar
*Responsive*Bar>=0.36.0
@nivo/bar
*Responsive*BarCanvas>=0.36.0
@nivo/bullet
*Responsive*Bullet - https://github.com/plouc/nivo/pull/1694@nivo/calendar
*Responsive*Calendar - https://github.com/plouc/nivo/pull/223@nivo/chord
*Responsive*Chord@nivo/chord
*Responsive*ChordCanvas@nivo/circle-packing
*Responsive*Bubble - https://github.com/plouc/nivo/pull/200@nivo/circle-packing
*Responsive*BubbleHtml - https://github.com/plouc/nivo/pull/200@nivo/circle-packing
*Responsive*BubbleCanvas - https://github.com/plouc/nivo/pull/200@nivo/heatmap
*Responsive*HeatMap@nivo/heatmap
*Responsive*HeatMapCanvas@nivo/line
*Responsive*Line - https://github.com/plouc/nivo/pull/258@nivo/pie
*Responsive*Pie - https://github.com/plouc/nivo/pull/208@nivo/pie
*Responsive*PieCanvas@nivo/radar
*Responsive*Radar - https://github.com/plouc/nivo/pull/1761@nivo/sankey
*Responsive*Sankey@nivo/scatterplot
*Responsive*ScatterPlot - https://github.com/plouc/nivo/pull/255@nivo/scatterplot
*Responsive*ScatterPlotCanvas@nivo/stream
*Responsive*Stream - https://github.com/plouc/nivo/pull/1721@nivo/sunburst
*Responsive*Sunburst@nivo/treemap
*Responsive*TreeMap - https://github.com/plouc/nivo/pull/200@nivo/treemap
*Responsive*TreeMapHtml - https://github.com/plouc/nivo/pull/200@nivo/treemap
*Responsive*TreeMapCanvas - https://github.com/plouc/nivo/pull/200@nivo/waffle
*Responsive*Waffle - https://github.com/plouc/nivo/pull/202@nivo/waffle
*Responsive*WaffleHtml - https://github.com/plouc/nivo/pull/202@nivo/waffle
*Responsive*WaffleCanvas - https://github.com/plouc/nivo/pull/202