Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1474 from metasfresh/dev-1427
Browse files Browse the repository at this point in the history
Fix re-rendering issue on BarChart #1427
  • Loading branch information
metas-mk authored Jan 2, 2018
2 parents 8ccd3e3 + 9f42605 commit 5851d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/charts/BarChartComponent/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const drawData = (
if (yChanged || reRender) {
return 0;
} else {
return dimensions.height - ranges.y(d.valuePrev);
return Math.abs(ranges.y(d.value) - ranges.y(0));
}
})
.transition()
Expand Down

0 comments on commit 5851d7d

Please sign in to comment.