You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the opened issues and there are no duplicates
Describe the requested feature
I tried using the Plotly chart, but it seems that the interactivity feature is not working.
Can this issue be solved to make it possible to fully integrate Plotly with flet?
Code example to reproduce the issue:
importplotly.graph_objectsasgoimportplotly.expressaspximportpandasaspdimportfletasftfromflet.plotly_chartimportPlotlyChartfromfletimportWebViewdefmain(page: ft.Page):
df=pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
fig=px.line(df, x='Date', y='AAPL.High', title='Time Series with Range Slider and Selectors')
fig.update_xaxes(
rangeslider_visible=True,
rangeselector=dict(
buttons=list([
dict(count=1, label="1m", step="month", stepmode="backward"),
dict(count=6, label="6m", step="month", stepmode="backward"),
dict(count=1, label="YTD", step="year", stepmode="todate"),
dict(count=1, label="1y", step="year", stepmode="backward"),
dict(step="all")
])
)
)
page.add(PlotlyChart(fig, expand=True))
ft.app(main)
Matplotlib and Plotly charts are static in Flet. Internally, they just render the provided figures as images.
For interactive charts atm, see other chart types we have: https://flet.dev/docs/controls/charts
Activity
ndonkoHenri commentedon Jul 31, 2024
Matplotlib and Plotly charts are static in Flet. Internally, they just render the provided figures as images.
For interactive charts atm, see other chart types we have: https://flet.dev/docs/controls/charts