Skip to content

Commit c2b59f3

Browse files
committed
fix: no need to compute axis on highlight
1 parent 4e35578 commit c2b59f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/charting/charts/Chart.ts

+2
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
460460
this.setLastHighlighted(highs);
461461

462462
// redraw the chart
463+
this.noComputeOnNextDraw = true;
463464
this.invalidate();
464465
}
465466

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

549550
// redraw the chart
551+
this.noComputeOnNextDraw = true;
550552
this.invalidate();
551553
}
552554

0 commit comments

Comments
 (0)