Increase "bar width" "px.bar" code example
Example 1: Increase "bar width" "px.bar"
import plotly.express as px
fig = px.bar(x = ['a', 'b', 'c'], y = [5, 10, 12])
for data in fig.data:
data["width"] = 0.15 #Change this value for bar widths
fig.show()
Example 2: Increase "bar width" "px.bar"
import os
import pandas as pd
from sklearn import preprocessing
import plotly.express as px
import plotly.offline
from plotly.offline import plot
import plotly.graph_objects as go
import numpy as np