Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is gradientFillColors supported on Android? #73

Open
jlm0 opened this issue Apr 21, 2023 · 1 comment
Open

Is gradientFillColors supported on Android? #73

jlm0 opened this issue Apr 21, 2023 · 1 comment
Labels
question Further information is requested

Comments

@jlm0
Copy link

jlm0 commented Apr 21, 2023

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} />

@Montchy Montchy added the question Further information is requested label Aug 14, 2023
@Harsh-Tuwar
Copy link

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 🥂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants