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": [ 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, },