Skip to content

Commit 258cb6a

Browse files
committed
fix: another circular fix
1 parent 4dbdcba commit 258cb6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/charting/highlight/PieRadarHighlighter.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Highlight } from './Highlight';
22
import { IHighlighter } from './IHighlighter';
3-
import { PieChart } from '../charts/PieChart';
43
import { PieRadarChartBase } from '../charts/PieRadarChartBase';
54
import { Entry } from '../data/Entry';
65
import { DataSet } from '../data/DataSet';
@@ -33,7 +32,8 @@ export abstract class PieRadarHighlighter<E extends Entry, D extends DataSet<E>,
3332

3433
let angle = this.mChart.getAngleForPoint(x, y);
3534

36-
if (this.mChart instanceof PieChart) {
35+
// detect PieChart while preventing circular dep
36+
if (!(this.mChart['mCircleBox'])) {
3737
angle /= this.mChart.getAnimator().getPhaseY();
3838
}
3939

0 commit comments

Comments
 (0)