react-complete-guide-code
react-complete-guide-code copied to clipboard
Use total value to compute relative month value
As already stated in issue #18 the chartbar does not seem to be well calculated.
The bar should represent the relative amount of expenses of each month in relation with the total expenses of the year. With the current implementation it compares for each month with the maximum value, which is wrong.
This PR fixes the problem.