Skip to content

Commit

Permalink
Merge pull request #55 from bengarding/FixBarChartRendererBug
Browse files Browse the repository at this point in the history
Fix BarChartRenderer bug
  • Loading branch information
hannesa2 authored May 31, 2022
2 parents d45a2ff + b2ad5b9 commit e8cb3c7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public void initBuffers() {
@Override
public void drawData(Canvas c) {

if (mBarBuffers == null) {
initBuffers();
}

BarData barData = mChart.getBarData();

for (int i = 0; i < barData.getDataSetCount(); i++) {
Expand Down

0 comments on commit e8cb3c7

Please sign in to comment.