We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7355e commit 1c0bca2Copy full SHA for 1c0bca2
src/ui-chart/highlight/CombinedHighlighter.ts
@@ -21,11 +21,18 @@ export class CombinedHighlighter extends ChartHighlighter<CombinedDataProvider>
21
this.barHighlighter = !barChart.barData ? null : new BarHighlighter(barChart);
22
}
23
24
+ protected getChartData() {
25
+ return this.mChart.combinedData;
26
+ }
27
+
28
public getHighlightsAtXValue(xVal, x?, y?) {
29
this.mHighlightBuffer = [];
30
+ const data = this.getChartData();
31
32
+ if (!data) return this.mHighlightBuffer;
33
- const dataObjects = this.mChart.combinedData.datas;
- const datasArray = this.mChart.combinedData.datasArray;
34
+ const dataObjects = data.datas;
35
+ const datasArray = data.datasArray;
36
const keys = Object.keys(dataObjects);
37
38
for (let i = 0; i < keys.length; i++) {
0 commit comments