Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,17 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# Function to plot the chart
|
| 5 |
def plot_chart(x_values, y_values):
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import matplotlib.pyplot as plt
|
| 3 |
+
import plotly.express as px
|
| 4 |
+
import pandas as pd
|
| 5 |
+
|
| 6 |
+
# Load your data (replace with your actual dataset)
|
| 7 |
+
df = pd.read_csv('your_data.csv')
|
| 8 |
+
|
| 9 |
+
# Create an interactive scatter plot
|
| 10 |
+
fig = px.scatter(df, x='column_x', y='column_y', color='category_column', title="Interactive Scatter Plot")
|
| 11 |
+
|
| 12 |
+
# Show the plot
|
| 13 |
+
fig.show()
|
| 14 |
+
|
| 15 |
|
| 16 |
# Function to plot the chart
|
| 17 |
def plot_chart(x_values, y_values):
|