Hey there,
My original issue stems from not being able to omit missing dates in the Xaxis, which causes unsightly gaps in a bar chart. To get around this I use the xaxis type category however this changes the formatting for dates to โYYYY-MM-DDโ although have have defined formats and spaces. Does category change the data to a string?
code:
layout = go.Layout(
autosize = True,
title = '',
font = {
"family": "Raleway",
"size": 12,
"color": "white"
},
barmode = 'stack',
xaxis = { 'type': 'category','tickformat': '%-d/%b', 'dtick': 'M1' },
yaxis = { 'title': '', 'showgrid': False},
legend = { 'orientation': 'h'},
paper_bgcolor=colors['transparent'],
plot_bgcolor=colors['plotbg'],
margin = {
"r": 50,
"t": 50,
"b": 50,
"l": 50
},
)
chart looks as such however.
which isnโt ideal.
Any idea how I can reformat categories type?
thanks