Plotly Graphs to Dash

I have created Graphs on Python using Plotly Express (bar chart, line graph, scatter graph).

I was wondering is there a ways of inputting the code directly into Dash.

i’ve included my code below:

import as px
import pandas as pd
import numpy as np

Line Graph of All Age Groups

df = pd.read_csv(r’D:/University/3rd Year/Final Year Project/Data Collection/Combination/All Age Groups.csv’)
fig = px.line(df, x=‘Year Q’, y=[‘All 16-17’, ‘All 18-24’, ‘All 25-49’, ‘All 50 and over’], title=‘Line Graph of All Age Groups’)

Show plot

That’s the whole idea behind dash. :slight_smile:

I strongly recommend going through the tutorial. It contains all the information you need to embed your graph into a dash web app. (And much more.)