Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
试图让这条灰线平行于 x 轴作为目标的标记(在 y 轴的 67% 处)。
您可以放置一个标记道具,例如:
markers={[ { axis: 'y', value: 520, legend: 'TEST', lineStyle: { stroke: 'red', }, textStyle: { fill: 'red', }, }, ]}
该值确定标记位置,您可以根据您传递的数据进行计算。