@Rich wrote:
Hi,
I’m fairly new to Python and recently discovered Dash.
I’m building a graph which has durations on the Y axis, and Datetime on the X axis, but the graph which is generated is just a gradual slope instead of the correct data - and the labels are displayed in what I believe is ISO format…any suggestions on what I’m doing wrong here? (probably a lot
)
The data comes from a dataframe in another file, and the data type of “time” is in timedelta64
my only assumption is that timedelta isn’t supported? but any clue of what to convert it to would be really appreciated.
Here’s my code:
app.layout = html.Div(children=[ html.Div(children=''' Dash: Testing out Dash. '''), dcc.Graph( id='example-graph2', figure={ 'data': [ {'x': sdc_resolved['month ending'], 'y': sdc_resolved["time"], 'type': 'bar', 'name': 'Testing'}, ], 'layout': { 'title': 'Dash Data Visualization' } } ) ])
Posts: 1
Participants: 1