hi all , I am new to Dash and have a simple dataframe and want to display a normal matplotlib graph in my dash screen directlly , I don’t want any input and want to display same graph always any suggestions
If you really need to use a matplotlib graph, you can export the generated image from matplotlib to base64 and use anhtml.Img
component in your layout, filling out the src
key with the string that is the base64 encoded image.
See https://stackoverflow.com/questions/38061267/matplotlib-graphic-image-to-base64
Note that the Dash Graph component doesn’t need to be interactive so can definitely be used for static plots.
2 Likes