react-native-graph icon indicating copy to clipboard operation
react-native-graph copied to clipboard

Is gradientFillColors supported on Android?

Open jlm0 opened this issue 1 year ago • 1 comments

As the title states, is gradientFillColors supported on Android? The prop does not appear to be affecting the chart. <LineGraph style={{height: 80, width: '100%'}} points={placeholderData} animated={false} color={theme.colors.primary} gradientFillColors={['#7476df5D', '#7476df4D', '#7476df00']} lineThickness={2} />

jlm0 avatar Apr 21 '23 16:04 jlm0

Hi @jlm0

It does work for android emulator! I tested it. See screenshot attached below:-

Screenshot 2024-03-16 at 6 55 21 PM

Here is what my code looks like:-

<LineGraph
    style={{ width: '100%', height: 300 }}
    points={history}
    animated={true}
    color="#017560"
    gradientFillColors={['#7476df5D', '#7476df4D', '#7476df00']} 
    enablePanGesture
    onPointSelected={onPointSelected}
    verticalPadding={25}
    onGestureEnd={() => setSelectedPoint(null)}
    enableIndicator
    indicatorPulsating
    enableFadeInMask
/>

Hope this helps!

Happy coding 🧑🏼‍💻 Cheers 🥂

Harsh-Tuwar avatar Mar 16 '24 22:03 Harsh-Tuwar