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

**URL:** <https://talk.observablehq.com/t/i-want-to-know-how-to-make-a-horizontal-line-according-to-the-y-axis-value/5343>\
**Category:** Help\
**Created:** [July 18, 2021, 9:40am UTC](https://talk.observablehq.com/t/i-want-to-know-how-to-make-a-horizontal-line-according-to-the-y-axis-value/5343 "2021-07-18T09:40:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wz02](https://avatars.discourse-cdn.com/v4/letter/w/35a633/32.png) [@Wz02](https://talk.observablehq.com/u/Wz02)\
**Post date:** [July 18, 2021, 9:40am UTC](https://talk.observablehq.com/t/i-want-to-know-how-to-make-a-horizontal-line-according-to-the-y-axis-value/5343/1 "2021-07-18T09:40:47Z")

</div>

link : [D3 Charting Tool: How to add label at right of target line (additional horizontal line) in column chart](https://stackoverflow.com/questions/59082594/d3-charting-tool-how-to-add-label-at-right-of-target-line-additional-horizonta)

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.
