🏠 back to Observable

I want to know how to make a horizontal line according to the y-axis value

link : D3 Charting Tool: How to add label at right of target line (additional horizontal line) in column chart

I implemented the graph through this link. The problem is that if there are multiple graphs and the y-axis values are different at the same height, if the horizon value is 10px, then 10px is output regardless of the y-axis range. If i want to add horizontal lines according to the y-axis range, I’d like to know a solution.