diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index ecf3e03f81..456ddeceb6 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -866,7 +866,7 @@ class SeriesData< throw new Error('Do not supported yet'); } } - const rawIndex = invertedIndices[value]; + const rawIndex = invertedIndices && invertedIndices[value]; if (rawIndex == null || isNaN(rawIndex)) { return INDEX_NOT_FOUND; }