Horizontal bar chart height and width issue

I am creating horizontal bar chart with plotly. But I am facing multiple issue:

1>Number of Points on Y axis are not fixed, so I cannot have a chart with fixed height. Can height be adjusted automatically??

2> I need bar width to be fixed. I am passing width as '.4 ’ . but width of bar changes if dataset in increased or decreased as this width always try to cover whole height of chart.

We don’t offer a way to auto-size graphs with respect to incoming data at the moment unfortunately

Have you tried not setting width in your bar traces? Plotly should do a good enough job by default in most cases.