diff --git a/src/marks/axis.js b/src/marks/axis.js index 7c7944a55f..8bafb8d1af 100644 --- a/src/marks/axis.js +++ b/src/marks/axis.js @@ -632,7 +632,7 @@ function axisMark(mark, k, data, properties, options, initialize) { return [name, {...channel, value: valueof(data, channel.value)}]; }) ); - if (initializeFacets) facets = context.filterFacets(data, initializedChannels); + if (initializeFacets) facets = context._filterFacets(data, initializedChannels); return {data, facets, channels: initializedChannels}; } diff --git a/src/plot.js b/src/plot.js index a7383a66c7..2deaa39cff 100644 --- a/src/plot.js +++ b/src/plot.js @@ -160,7 +160,7 @@ export function plot(options = {}) { context.projection = createProjection(options, subdimensions); // Allows e.g. the axis mark to determine faceting lazily. - context.filterFacets = (data, channels) => { + context._filterFacets = (data, channels) => { return facetFilter(facets, {channels, groups: facetGroups(data, channels)}); };