Skip to content

Persistent Gray Background in LineChart despite transparent configuration #1195

@vishwas-babar

Description

@vishwas-babar

Description

I am experiencing an issue where a LineChart renders with a persistent gray background color, even when explicitly configured to be transparent.

I have tried:

  • Setting backgroundColor="transparent" on the LineChart prop.
  • Setting customBackground={{ color: 'transparent' }}.
  • Ensuring the parent container has a non-gray background.
Image

for more details please have a look at stack overflow post
https://stackoverflow.com/questions/79849387/unexpected-gray-background-in-react-native-gifted-charts-linechart-with-transpar

package version: 1.4.70

Steps to reproduce

  1. Create a LineChart.
  2. Set backgroundColor="transparent".
  3. Render it within a specific container.

Snack or a link to a repository

No response

version of react-native-gifted-charts

1.4.70

React Native version

0.81.5

Platforms

Android

Workflow

Expo Dev Client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions