Skip to content

Commit

Permalink
Merge pull request #1101 from valuemotive/fix-victoryvoronoicontainer…
Browse files Browse the repository at this point in the history
…-labels

Call labels with the appropriate params.
  • Loading branch information
boygirl authored Aug 24, 2018
2 parents 482d98e + c70b8cc commit 238709c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const voronoiContainerMixin = (base) => class VictoryVoronoiContainer ext
const componentStyleArray = type === "flyout" ?
componentProps.flyoutStyle : componentProps.style;
return points.reduce((memo, point, index) => {
const text = Helpers.evaluateProp(labels, point, true);
const text = isFunction(labels) ? labels(point, index, points) : undefined;
const textArray = text !== undefined ? `${text}`.split("\n") : [];
const baseStyle = point.style && point.style[type] || {};
const componentStyle = Array.isArray(componentStyleArray) ?
Expand Down

0 comments on commit 238709c

Please sign in to comment.