You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this amazing library, it is so powerful! I am loving working with it in some visualizations.
I have come across a requirement which I am not too sure on how to implement with visx. I wonder if someone in the community can help me out.
I am using a <XYChart> component and I need to render custom components in arbitrary locations within the graph to indicate different milestones, this is very similar to the <Annotation/> component already available in the @visx/xychart package, the only extra capability that I need is the ability to handle pointer events from this custom components to be able to dynamically render more information about the specific milestones when the user clicks on the component.
I can get this working if I use captureEvents = false option, but as noted in other discussions, I loose the out of the box support for tooltips. Is there any way to get <Tooltip> working when using captureEvents = false? Or to somehow subscribe to pointer events within my custom component when using captureEvents = true ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
Thank you for this amazing library, it is so powerful! I am loving working with it in some visualizations.
I have come across a requirement which I am not too sure on how to implement with visx. I wonder if someone in the community can help me out.
I am using a
<XYChart>
component and I need to render custom components in arbitrary locations within the graph to indicate different milestones, this is very similar to the<Annotation/>
component already available in the@visx/xychart
package, the only extra capability that I need is the ability to handle pointer events from this custom components to be able to dynamically render more information about the specific milestones when the user clicks on the component.I can get this working if I use
captureEvents = false
option, but as noted in other discussions, I loose the out of the box support for tooltips. Is there any way to get<Tooltip>
working when usingcaptureEvents = false
? Or to somehow subscribe to pointer events within my custom component when usingcaptureEvents = true
?Beta Was this translation helpful? Give feedback.
All reactions