Skip to content

Commit 7c1f4af

Browse files
committed
fix: rename event to highlight
1 parent 8e7f3ba commit 7c1f4af

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/charting/charts/Chart.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
624624
this.setLastHighlighted(this.mIndicesToHighlight);
625625

626626
if (callListener) {
627-
if (!this.valuesToHighlight()) {
628-
this.notify({ eventName: 'selected', object: this });
629-
} else {
630-
// notify the listener
631-
this.notify({ eventName: 'selected', object: this, entry: e, highlight: high });
632-
}
627+
this.notify({ eventName: 'highlight', object: this, entry: e, highlight: high } as HighlightEventData);
633628
}
634629

635630
// redraw the chart

0 commit comments

Comments
 (0)