0

This is my ProgressChart

 const chartConfig = {
    backgroundGradientToOpacity: 0.5,
    color: (opacity = 1) => `rgba(26, 255, 146, ${opacity})`,
  };
 <ProgressChart
    data={graphData}
    height={220}
    width={300}
    chartConfig={chartConfig}
/>

enter image description here

This is my graph data

{"background": ["#A7FFA7", "#EFEF8C", "#F39A9A"], "color": ["#007F14", "#9BB500", "#A20D00"], "data": [0.1, 0.1, 0.2], "labels": ["WELL-SPENT", "RECREATION", "UNPRODUCTIVE"]}

GitHub Issue React Native Chart Kit: Progress Ring

I tried this but it just fills in the colour and I'm not able to differentiate bw the background and data of the circle.

const chartConfig = {
    backgroundGradientToOpacity: 0.5,
   color: (opacity = 1, index) => graphData.color[index],
  };

enter image description here

lovestaco
  • 19
  • 3

0 Answers0