我创建条形图。我想为 y 轴提供范围,例如当前 y 轴显示 5、10、15、20,但我想要 10、20、30 的范围为 10。我该如何实现?
<VictoryAxis
domain={{y: [0, 30]}}
dependentAxis
orientation="left"
style={{
tickLabels: {fontSize: 12},
axis: {stroke: 'transparent'},
}}
/>