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.
dileep
January 22, 2024, 5:28pm
3
I have tried this , but the thing is the vertical line is overlapping with bar .
How can we do without overlapping ?
AIMPED
January 22, 2024, 8:27pm
4
Hi @dileep , what exactly are you referring to?
dileep
January 23, 2024, 6:08am
5
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 ?