Hi! I’ve just started re-writing my app from MATLAB to Dash. Dash is awesome! Sorry for the newbie question, but I’m having trouble with the annotated heatmap from figure factory. The basic Heatmap works with no problem. Here is a simplified code sample from my app:
html.Div([
dcc.Graph(
id=‘StyleBox’,
figure={
‘data’: [go.Heatmap(
z=[[1.0,2.0,3.0],
[4.0,5.0,6.0],
[7.0,8.0,9.0]],
)],
‘layout’: go.Layout(title= go.layout.Title(text = ‘Style Box’),
height=300,
paper_bgcolor= ‘whitesmoke’,
),
}
),
],className = ‘six columns’),
it produces a heatmap as expected:
However if I try using the annotated heatmap, the graph is blank:
figure={
‘data’: [ff.create_annotated_heatmap(
z=[[1.0,2.0,3.0],
[4.0,5.0,6.0],
[7.0,8.0,9.0]],
)],
Thanks for your help!