source: node_modules/recharts/es6/state/selectors/combiners/combineBarPosition.js@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 386 bytes
Line 
1export var combineBarPosition = (allBarPositions, barSettings) => {
2 if (allBarPositions == null || barSettings == null) {
3 return undefined;
4 }
5 var position = allBarPositions.find(p => p.stackId === barSettings.stackId && barSettings.dataKey != null && p.dataKeys.includes(barSettings.dataKey));
6 if (position == null) {
7 return undefined;
8 }
9 return position.position;
10};
Note: See TracBrowser for help on using the repository browser.