3
以下は一般的な勝利のコードです。勝利のマージンを調整するには?
<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>
これは私が円グラフおよび凡例の距離を調節するVictoryLegend x={width - 50} y={30}
を用いた対応Jsfiddle
あります。しかし、それを正確に調整するのは難しいことがわかった。どのように私はパイと伝説の距離を増やすことができますか?
感謝。とても役に立ちました –
@liamxu私は助けてうれしいです。 –