ray26
October 23, 2022, 12:43am
1
I am getting the following error when I try to use the keyword argument staticPlot
of dcc.Graph
:
TypeError: The `dcc.Graph` component (version 2.6.2) received an unexpected keyword argument: `staticPlot`
Allowed arguments: animate, animation_options, className, clear_on_unhover, clickAnnotationData, clickData, config, extendData, figure, hoverData, id, loading_state, mathjax, prependData, relayoutData, responsive, restyleData, selectedData, style
I tried to set staticPlot
following the documentation here: Graph | Dash for Python Documentation | Plotly . I have dash 2.6.2, which is the latest version of dash as of now. I just want to display a static graph. Would appreciate any help!
Hello @ray26 ,
Welcome to the community!
Just taking a guess here, but according to the documentation link, the staticPlot should be inside the config argument as a dictionary:
dcc.Graph(figure=fig, config={'staticPlot':True})
If that doesnt work, could you please post an MRE so that we can diagnose?
Adding a minimal reproducible example to your questions will help attract community members to answer your question. The goal of writing a MRE is to allow other members of the community to run the code on their computers and “reproduce” the error, so that they can best help you.
Please make sure that your MRE includes data and that the code is correctly pre-formatted.
To preformat, copy and paste the code in your post and then click on </> (Preformatted text), as shown on the image:
[pre-for…
2 Likes
ray26
October 24, 2022, 1:26am
3
@jinnyzor Thanks! It worked.
1 Like