Plotly Create A Vertical Line To Show Average
So i am attempting create a horizontal bar chart that has a horizontal line showing average. So far i have attempted the following: First added my barChart series (it comes from th
Solution 1:
It would help if you would provide a jsFiddle or codePen or other example to execute it directly:-)
I think the problem is, that you want to have a vertical line but set orientation: 'h'
to the last "average-organisation"-object instead using orientation: 'v'
.
I reproduced your example in a jsFiddle and add the desired behaviour: https://jsfiddle.net/vepycde0/
Hope it helps:-)
Edit: For hiding the "0" on yAxis use y: [""]
as seen in that jsFiddle: https://jsfiddle.net/vepycde0/1/
Post a Comment for "Plotly Create A Vertical Line To Show Average"