Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Bar Plot range on the x axis

I am trying to plot a dogged bar graph in plotly. The x axis input is of numeric and the unique values are - 100,250,500,1000,1500,2000,2500,5000,10000.

On plotling the bar graph using the plot_ly() , the graph is getting populated but the problem is the size of the bars becomes very thin because of the huge range i.e 0 - 10000.

I want to increase the width of the bar, i tries to attributes like size, marker but none worked. Now i want to pass only the desired values on the x axis i.e 100,250,500,1000,1500,2000,2500,5000,10000 . So i can get much space and bars could also be wider!

Kindly help me to pass only these values on the x axis.

Any help would be appreciated!