I plotted a figure that I saved in fig.html and I would like to display it with dash-html-components.
Which Dash HTML component should I use and what is the exact syntax? I have tried several components from the dash list but I think I am not using it the right way.
this is my current result:
Here is an example of what I tried:
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash(__name__, external_stylesheets=['../app/css/template.css'])
app.title = 'Test Dashboard'
app.layout = html.Div([
html.H1(
children='Test Dashboard',
style={
'textAlign': 'center'
}
),
html.Br(),
html.Iframe(src='fig.html')
],
style={'width': '75%',
'textAlign': 'center',
'margin-left':'12.5%',
'margin-right':'0'
}
)
if __name__ == '__main__':
app.run_server(debug=True)