Javascript 对于Victory,我如何影响VictoryAxis标签的Y位置?
我正在使用React.js、Victory和Javascript 我试图得到“日期”轴标签,去下面的刻度。 i、 e.影响轴标签的y位置Javascript 对于Victory,我如何影响VictoryAxis标签的Y位置?,javascript,reactjs,victory-charts,Javascript,Reactjs,Victory Charts,我正在使用React.js、Victory和Javascript 我试图得到“日期”轴标签,去下面的刻度。 i、 e.影响轴标签的y位置 <VictoryAxis fixLabelOverlap tickFormat={(t, i) => { t = t.replace("2020-", "") t = t.replace(/
<VictoryAxis
fixLabelOverlap
tickFormat={(t, i) => {
t = t.replace("2020-", "")
t = t.replace(/-/g, "/")
return t
}}
label = { xAxisLabel }
style = {{ axisLabel: { paddingTop:"20px" } }}
/>
{
t=t.replace(“2020-”,“”)
t=t.替换(/-/g,“/”)
返回t
}}
label={xAxisLabel}
样式={{axisLabel:{paddingTop:“20px”}}
/>