Below is a general victory code.
<svg viewBox={viewBox}>
<VictoryPie
standalone={false}
width={width} height={height}
data={data}
innerRadius={innerRadius}
colorScale={colorScale}
/>
<VictoryLegend x={width - 50} y={30}
title="Totals"
centerTitle
orientation="vertical"
gutter={20}
style={{
title: { fontSize: 15 }
}}
data={legendDataWithStyle}
standalone={false}
/>
</svg>
This is the corresponding Jsfiddle
I was using VictoryLegend x={width - 50} y={30} to regulate the distance of piechart and legend. But I found it's hard to precisely tune it. How can I increase the distance of the pie and legend?