react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

Can i make gradient fill in chart?

Open redpicsel opened this issue 5 years ago • 5 comments

redpicsel avatar Nov 09 '20 09:11 redpicsel

that's a good question! I would say that you may try to use react-native-linear-gradient with @react-native-community/masked-view using my charts as a mask!

osdnk avatar Nov 09 '20 23:11 osdnk

@osdnk I mean background gradient chart like this image

photo6147614522056223318

redpicsel avatar Nov 10 '20 02:11 redpicsel

@iamlucnguyen did you figure it out?

schalagashvili avatar Apr 01 '21 16:04 schalagashvili

Probably worth implementing!

osdnk avatar Apr 01 '21 16:04 osdnk

Hey guys, if somebody is still interested in this, this is how I implemented gradient in my case:

https://github.com/stas-kravchuk/react-native-animated-charts/commit/3c2fc7980915e38807c53880cbb02346ab837e9a

Maybe this will be useful for future feature implementation ;)

stas-kravchuk avatar Sep 13 '21 14:09 stas-kravchuk