Replies: 3 comments
-
@gspsteve I'd looking into using some of the shapes and Shadow effects within Skia https://shopify.github.io/react-native-skia/docs/shapes/polygons Moving to a discussion as this isn't an issue with victory native |
Beta Was this translation helpful? Give feedback.
-
OK thanks to moving into to a discussion, so has anyone already implemented a card like style for the "Tooltip"? |
Beta Was this translation helpful? Give feedback.
-
I think you can build simple tooltip using react-native-reanimated and clamp function outside the Victory Native it-self, since it's hard to style How it works:
after you figure out, you need to make a "clamp" function that will return the value of x between range you want
full code:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with Victory Native XL and trying to implement a custom tooltip (ActiveValueIndicator) using SkiaText from @shopify/react-native-skia. The goal is to display the value inside a card-like container (similar to a Paper.Card look) when interacting with the chart.
I currently have this working with SkiaText, but I'm struggling to style it like a card with background color, rounded corners, and padding. I understand that using Skia components is necessary, but I'm unsure how to replicate the card effect effectively.
My current implemeantion:
Beta Was this translation helpful? Give feedback.
All reactions