Commit ·
7fdfd9e
1
Parent(s): d19b4e7
start
Browse files- app.py +3 -1
- docker_build.log +0 -0
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import plotly.express as px
|
|
|
|
|
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
import json
|
| 6 |
import os
|
|
@@ -140,7 +142,7 @@ else:
|
|
| 140 |
|
| 141 |
with chart_col:
|
| 142 |
st.caption("Native chart (always on)")
|
| 143 |
-
st.area_chart(df_cohorts
|
| 144 |
|
| 145 |
try:
|
| 146 |
st.caption("Plotly chart")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import plotly.express as px
|
| 4 |
+
import matplotlib
|
| 5 |
+
matplotlib.use('Agg')
|
| 6 |
import matplotlib.pyplot as plt
|
| 7 |
import json
|
| 8 |
import os
|
|
|
|
| 142 |
|
| 143 |
with chart_col:
|
| 144 |
st.caption("Native chart (always on)")
|
| 145 |
+
st.area_chart(df_cohorts, x="cohort_day", y="user_count", use_container_width=True)
|
| 146 |
|
| 147 |
try:
|
| 148 |
st.caption("Plotly chart")
|
docker_build.log
ADDED
|
File without changes
|