Cannot read properly 'data ' of null (DASH)
Sometimes Dash can struggle if the prop being updated by a callback hasn't been initialized. In this case, the figure
prop of the dcc.Graph
was never declared. Setting an explicit empty value, such as figure={}
is often enough to resolve this sort of error.