diff --git a/lib/components/victory-pie.js b/lib/components/victory-pie.js
index 3ef20ecb..054f0374 100644
--- a/lib/components/victory-pie.js
+++ b/lib/components/victory-pie.js
@@ -14,10 +14,4 @@ export default class extends VictoryPie {
containerComponent: ,
groupComponent:
};
-
- // Overrides method in victory-pie
- renderGroup(props, children) {
- const { x, y } = this.getOffset(props);
- return React.cloneElement(props.groupComponent, { translateX: x, translateY: y }, children);
- }
}
diff --git a/lib/components/victory-primitives/slice.js b/lib/components/victory-primitives/slice.js
index 11cd0a64..65c378eb 100644
--- a/lib/components/victory-primitives/slice.js
+++ b/lib/components/victory-primitives/slice.js
@@ -6,14 +6,17 @@ import { NativeHelpers } from "../../index";
export default class extends Slice {
// Overrides method in victory-core
renderSlice(path, style, events) {
- const { role, shapeRendering, className } = this.props;
+ const { role, shapeRendering, className, origin } = this.props;
const nativeStyle = NativeHelpers.getStyle(style);
+ const baseTransform = origin ? `translate(${origin.x} ${origin.y})` : undefined;
+ const transform = NativeHelpers.getTransform(baseTransform);
return (