Skip to content

Commit

Permalink
fix: no need to compute axis on highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 26, 2020
1 parent 4e35578 commit c2b59f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/charting/charts/Chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
this.setLastHighlighted(highs);

// redraw the chart
this.noComputeOnNextDraw = true;
this.invalidate();
}

Expand Down Expand Up @@ -547,6 +548,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
}

// redraw the chart
this.noComputeOnNextDraw = true;
this.invalidate();
}

Expand Down

0 comments on commit c2b59f3

Please sign in to comment.