diff --git a/demo/components/victory-voronoi-container-demo.js b/demo/components/victory-voronoi-container-demo.js index 86cf5e01..c8ce5ddb 100644 --- a/demo/components/victory-voronoi-container-demo.js +++ b/demo/components/victory-voronoi-container-demo.js @@ -140,6 +140,75 @@ class App extends React.Component { y={(d) => d.x * d.x} /> + d.y} + labelComponent={} + /> + } + > + + active ? 5 : 3} + /> + + + + active ? 5 : 3} + /> + + + + active ? 5 : 3} + /> + + + + { const role = child.type && child.type.role; + const childProps = child.props || {}; + const blacklist = props.voronoiBlacklist || []; if (role === "axis" || role === "legend" || role === "label") { return null; @@ -52,8 +54,8 @@ const VoronoiHelpers = { return null; } else if (child.type && isFunction(child.type.getData)) { child = parent ? React.cloneElement(child, parent.props) : child; - const childData = childProps - && child.type.getData({ ...childProps, domain: props.domain }); + const childData = child.props + && child.type.getData({ ...child.props, domain: props.domain }); return childData ? addMeta(childData, childName, child) : null; } else { const childData = getData({ ...childProps, domain: props.domain });