How to add a vertical line to horizontal bar chart

In a horizontal bar chart, such as

var data = [
{
y: [‘giraffes’, ‘orangutans’, ‘monkeys’],
x: [20, 14, 23],
type: ‘bar’
, orientation: ‘h’
}
];

Plotly.newPlot(‘myDiv’, data);

I need to add a vertical line and a text located at x = 10.
How to proceed?
Thank you.

Does this help?

I have tried this , but the thing is the vertical line is overlapping with bar .
How can we do without overlapping ?

Hi @dileep, what exactly are you referring to?

image

I have ploted the vertical line in the bar graph but the thing is they are overlapping , I need the vertical line between the bar graphs . How to do it ?