From 9c2c99d8d2b0e29791b9f3a3e86bdb7c610b98f3 Mon Sep 17 00:00:00 2001 From: Abhinandan-Kushwaha Date: Mon, 20 Jun 2022 19:16:48 +0530 Subject: [PATCH 1/2] fixed bar color issue in stacked bar charts --- src/BarChart/RenderStackBars.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BarChart/RenderStackBars.tsx b/src/BarChart/RenderStackBars.tsx index 1bef109..3ceb199 100644 --- a/src/BarChart/RenderStackBars.tsx +++ b/src/BarChart/RenderStackBars.tsx @@ -186,7 +186,7 @@ const RenderStackBars = (props: Props) => { (Math.abs(stackItem.value) * (containerHeight || 200)) / (maxValue || 200) - (stackItem.marginBottom || 0), - backgroundColor: stackItem.color || props.color || 'black', + backgroundColor: stackItem.color || item.color || props.color || 'black', borderRadius: stackItem.borderRadius || props.barBorderRadius || 0, }, From ef13557b90b1bc1c7fe5a7385e50fa1120d6ff88 Mon Sep 17 00:00:00 2001 From: Abhinandan-Kushwaha Date: Mon, 20 Jun 2022 19:17:25 +0530 Subject: [PATCH 2/2] fixed bar color issue in stacked bar charts --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e329a15..5a288ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-gifted-charts", - "version": "1.2.35", + "version": "1.2.36", "description": "The most complete library for Bar, Line, Area, Pie, Donut and Stacked Bar charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.", "main": "src/index.tsx", "files": [