Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Scaling horizontal bar charts?

Hello everyone,

I’ve tried searching the internet but I wasn’t able to find an answer. Apologies if the answer is blindingly obvious.

I’m looking for a way to scale up traces on a horizontal bar chart. here is a pen to demonstrate a mock up of the horizontal bar chart.

Is there a way to get the orange bar to scale up to its axis at the bottom? Also, I’ve been trying to show the second x axis’ line too but my efforts were to no avail. :cry:

Help would be greatly appreciated, thanks!

Like this https://codepen.io/etpinard/pen/KmzNNG ?

Hi etienne!

Thanks for responding. Unfortunately, this was not what I was hoping to achieve. My apologies, I don’t think I’ve conveyed myself accurately.

This picture will help demonstrate what I’m trying to achieve.

If you notice, the orange trace aligns itself to the bottom x axis, while the blue bar aligns itself to the x values at the top. Is this possible with plot.ly? I used a photo editing software to create this graph.

if possible, displaying the axis line of the bottom x axis (as well as the top one) would be a bonus! I forgot to add that into the picture.

See https://github.com/plotly/plotly.js/issues/78 for explanations.

1 Like

perfect! Thank you. I’ve managed to get the graph working. See pen.

1 Like