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

Commit

Permalink
Fix re-rendering issue on BarChart #1427
Browse files Browse the repository at this point in the history
  • Loading branch information
wiadev committed Dec 30, 2017
1 parent 8ccd3e3 commit 9f42605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/charts/BarChartComponent/data.js
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 9f42605

Please sign in to comment.