import streamlit as st import plotly.express as px import pandas as pd
# App title st.title("Interactive Bar Chart with Plotly")# Example DataFrame data = { 'Product': ['Product A', 'Product B', 'Product C', 'Product D'], 'Sales': [100, 150, 200, 250] } df = pd.DataFrame(data)# User input for bar chart customization selected_color = st.selectbox("Choose a color for the bars:", ["Blue", "Green", "Red"])