Victory: Tooltip and chart label simultaneously

Created on 4 Apr 2017  路  6Comments  路  Source: FormidableLabs/victory

Hello. Is there a way to render tooltips and labels on the Victory Pie simultaneously? Since when I use the labelComponent prop containing the VictoryTooltip inside VictoryPie, the regular labels disappear from the chart.

Thanks in advance!

Most helpful comment

Sorry about that. I had to re-write all the fiddles. Here's a new version: https://jsfiddle.net/boygirl/ytq13Lfk/

All 6 comments

@nicmesan the fiddles referenced in this issue should help you. https://github.com/FormidableLabs/victory/issues/554

@boygirl it seems like all your fiddles are gone. Usually, this wouldn't be much of a problem, but in cases like this issue, it's critical to have a working sample for reference.

Would really like to know how to do this. Please re-put up the jsfiddles please.

Sorry about that. I had to re-write all the fiddles. Here's a new version: https://jsfiddle.net/boygirl/ytq13Lfk/

There is a problem with the fiddle in that if the label itself is hovered, the tooltip piece disappears. This isn't much of a problem with the fiddle you've supplied but is a problem if the size of the label is bigger or the area being labeled is smaller. Is there a fix for this? Something with defaultEvents maybe?

@boygirl that fiddle is extremely helpful thank you so much for providing it. I made a small modification for my own purposes but there's still a black outline being rendered in the center label. Would you know how to hide that?

Fiddle here: https://jsfiddle.net/sqg4xL2y/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

icd2k3 picture icd2k3  路  3Comments

jotak picture jotak  路  4Comments

timhwang21 picture timhwang21  路  4Comments

nickzuber picture nickzuber  路  5Comments

seddonm1 picture seddonm1  路  5Comments