Fixed comparing real value with formatted according to mode. (#100456)
Before this part of code was comparing clean data, which came from dataset, with X/Y values. They were true according to normal mode, but in percentage mode, for example, it was comparing absolute value with percentage value. To avoid it, need to compare datum (feature #822 from elastic/elastic-charts) of geometry with clean value from row info. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
29b7d1d448
commit
c42f6c3063
|
@ -152,9 +152,9 @@ const rowFindPredicate = (
|
|||
) => (row: Datatable['rows'][number]): boolean =>
|
||||
(geometry === null ||
|
||||
(xAccessor !== null &&
|
||||
getAccessorValue(row, xAccessor) === geometry.x &&
|
||||
getAccessorValue(row, xAccessor) === getAccessorValue(geometry.datum, xAccessor) &&
|
||||
yAccessor !== null &&
|
||||
getAccessorValue(row, yAccessor) === geometry.y &&
|
||||
getAccessorValue(row, yAccessor) === getAccessorValue(geometry.datum, yAccessor) &&
|
||||
(splitChartAccessor === undefined ||
|
||||
(splitChartValue !== undefined &&
|
||||
getAccessorValue(row, splitChartAccessor) === splitChartValue)))) &&
|
||||
|
|
Loading…
Reference in a new issue