Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def create_bar_chart(df, category):
|
|
82 |
)
|
83 |
|
84 |
# Adjust the height of the chart based on the number of rows in the DataFrame
|
85 |
-
st.plotly_chart(fig, use_container_width=True, height=
|
86 |
|
87 |
# Example usage:
|
88 |
# create_bar_chart(your_dataframe, 'Your_Category')
|
@@ -158,7 +158,7 @@ def main():
|
|
158 |
"URL": st.column_config.LinkColumn("URL"),
|
159 |
},
|
160 |
hide_index=True,
|
161 |
-
height=len(df) *
|
162 |
)
|
163 |
|
164 |
# Add a button to export data to CSV
|
|
|
82 |
)
|
83 |
|
84 |
# Adjust the height of the chart based on the number of rows in the DataFrame
|
85 |
+
st.plotly_chart(fig, use_container_width=True, height=35)
|
86 |
|
87 |
# Example usage:
|
88 |
# create_bar_chart(your_dataframe, 'Your_Category')
|
|
|
158 |
"URL": st.column_config.LinkColumn("URL"),
|
159 |
},
|
160 |
hide_index=True,
|
161 |
+
height=int(len(df) * 36.5),
|
162 |
)
|
163 |
|
164 |
# Add a button to export data to CSV
|