diff --git a/src/victory-primitives/slice.js b/src/victory-primitives/slice.js index ef6e30f..d195133 100644 --- a/src/victory-primitives/slice.js +++ b/src/victory-primitives/slice.js @@ -45,13 +45,15 @@ export default class Slice extends React.Component { // Overridden in victory-core-native renderSlice(path, style, events) { - const { role, shapeRendering, className } = this.props; + const { role, shapeRendering, className, origin } = this.props; + const transform = origin ? `translate(${origin.x}, ${origin.y})` : undefined; return (