0

Same issue for both line graph and contribution graph. The background is always black

contribution graph

Tried to set chartConfig, not working.

chartConfig={{
    backgroundColor: "white",
    backgroundGradientFrom: "white",
    backgroundGradientTo: "white",
    backgroundGradientFromOpacity: 0,
    backgroundGradientToOpacity: 0,
    color: (opacity = 1) => `rgba(255, 255, 255, ${opacity})`
}}

Also tried to set style

style={{backgroundColor: "white",}}

Need some help here..

Nancy
  • 1
  • 1
  • 1
  • After looking at https://www.npmjs.com/package/react-native-chart-kit I see an example with only 1 bracket in your chartConfig, you use double brackets, maybe that's the problem – Takkie253 Oct 21 '22 at 07:59

0 Answers0