我的胜利图表工作正常,但需要工具提示不仅在触摸时始终显示...
<VictoryChart
height={200}
animate={{ duration: 500 }}
// domain={{ y: [400000, 498542.15] }}
containerComponent={
<VictoryVoronoiContainer
labels={() => "placeHolder"}
labelComponent={
<VictoryTooltip
style={{ fontSize: "15px", fill: BRAND_COLORS.white }}
cornerRadius={15}
pointerLength={10}
active={true}
flyoutStyle={{
stroke: BRAND_COLORS.transparent,
fill: "red",
}}
text={"$345,000.34"}
/>
}
/>
}
/>