| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 17 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React from 'react'; |
||
| 2 | |||
| 3 | export default function Bar(props) { |
||
| 4 | const {index, width, value, fill} = props.data; |
||
| 5 | |||
| 6 | return ( |
||
| 7 | <rect |
||
| 8 | x={index*width} |
||
| 9 | y={window.innerHeight - value-1} |
||
| 10 | width={`${width -3}`} |
||
| 11 | height={value} |
||
| 12 | stroke='#A0A1A1' |
||
| 13 | fill={fill} |
||
| 14 | /> |
||
| 15 | ); |
||
| 16 | } |
||
| 17 |