Trying to get this grey line parallel to x-axis as a marker of target (at of y-axis 67%).
Asked
Active
Viewed 790 times
1 Answers
2
you may put a markers props like:
markers={[
{
axis: 'y',
value: 520,
legend: 'TEST',
lineStyle: {
stroke: 'red',
},
textStyle: {
fill: 'red',
},
},
]}
the value determine the marker location, you can calculate based on data you passed.

Iury Vieira
- 46
- 5
-
This workes for me. Sorry for super later acknowledgement, but this is exactly what I was looking for. Thanks – Nikhil Anand Apr 07 '21 at 14:48
-
What happens when there is no 520 yet? Is there a way for the graph to show the y axis up to 520? – DoubleM Aug 16 '23 at 01:22