[Solved] Draw a specific line into TikZ diagram when the x axis has an ordinary scale

Linde_98 Asks: Draw a specific line into TikZ diagram when the x axis has an ordinary scale
I created a pillar chart with TikZ. It has a percentage on the y-axis and an ordinary scale on the x-axis.


the diagram as it is now

I now calculated the average value by associating each ordinary value with an absolute value. How can I draw this average (as a vertical line) into the chart.

In the image, the average for the “original implementation” would be 1.875 which means I would like to draw a line between “low” and “low-medium”.

Hear is my code:

Code:
begin{tikzpicture}
    begin{axis}[
    ybar, 
    ylabel=in %, 
    bar width=20pt, 
    symbolic x coords={low, low-medium, medium-high, high, very-high},
    xtick={low, low-medium, medium-high, high, very-high}, 
    x tick label style={rotate=45, anchor=east, align=center},
    height=8cm,
    width=15cm,
    title={Coupling amount per class classified with low, low-medium, medium-high, high, very-high},
    nodes near coords,         
    nodes near coords align={vertical}, ]
        addplot[draw = brown, fill = brown] coordinates{(low,87.5) (low-medium,12.5) (medium-high,0) (high,0) (very-high,0)};
        addplot[draw = orange, fill = orange] coordinates{(low,100) (low-medium,0) (medium-high,0) (high,0) (very-high,0)};
        
        legend{original implementation, FP implementation}
    end{axis}
end{tikzpicture}

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.