HI,
imagine this example :
import streamlit as st
import plotly.express as px
df = px.data.gapminder().query("continent == 'Oceania'")
fig = px.line(df, x='year', y='lifeExp', color='country', markers=True)
event = st.plotly_chart(fig, key="iris", on_select="rerun")
event
here’s the result :
what I’m trying to do is, everytime I drag the line chart on the left I want to display the data of the next years and if I drag the line chart on the right I need to display the data of the last years , do you have please any idea how i can achieve this.