Skip to content

Commit f3a1515

Browse files
committed
fix: Highlighting got a bit broken for some charts during 'getEntryXValue' update.
1 parent 70e9625 commit f3a1515

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/charting/highlight/ChartHighlighter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class ChartHighlighter<T extends BarLineScatterCandleBubbleDataProvider>
153153

154154
for (const r of entries) {
155155
const e = r.entry;
156-
const xVal = getEntryXValue(e.entry, xKey, r.index);
156+
const xVal = getEntryXValue(e, xKey, r.index);
157157
const pixels = this.mChart.getTransformer(set.getAxisDependency()).getPixelForValues(xVal, e[yKey]);
158158

159159
highlights.push({

src/charting/highlight/HorizontalBarHighlighter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class HorizontalBarHighlighter extends BarHighlighter {
4747

4848
for (const r of entries) {
4949
const e = r.entry;
50-
const xVal = getEntryXValue(e.entry, xKey, r.index);
50+
const xVal = getEntryXValue(e, xKey, r.index);
5151
const pixels = this.mChart.getTransformer(set.getAxisDependency()).getPixelForValues(e[yKey], xVal);
5252

5353
highlights.push({

src/charting/listener/ChartTouchListener.ts

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ export abstract class ChartTouchListener<T extends Chart<any, any, any>> {
130130
this.mChart.highlight(h, true);
131131
this.mLastHighlighted = h;
132132
}
133-
console.log("ubla1");
134133
}
135134

136135
/**

0 commit comments

Comments
 (0)