Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
blackary committed Nov 1, 2023
1 parent ef5db96 commit 16dea3f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 1-tutorial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd
import streamlit as st
from streamlit_vizzu import Config, Data, Style, VizzuChart
from streamlit_vizzu import Config, Data, Style, VizzuChart # noqa

# Create a VizzuChart object with the default height and width
chart = VizzuChart()
Expand Down
1 change: 0 additions & 1 deletion pages/3-drilldown.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pandas as pd
import streamlit as st
from streamlit_vizzu import Config, Data, Style, VizzuChart

chart = VizzuChart(rerun_on_click=True, default_duration=1, height=380)
Expand Down
27 changes: 22 additions & 5 deletions pages/6-dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
data = Data()
data.add_df(data_frame)

chart = VizzuChart(key="vizzu", height=380, width = 500)
chart = VizzuChart(key="vizzu", height=380, width=500)
chart.animate(data)
chart2 = VizzuChart(key="vizzu2", height=200, width = 180)
chart2 = VizzuChart(key="vizzu2", height=200, width=180)
chart2.animate(data)
chart3 = VizzuChart(key="vizzu3", height=200, width = 180)
chart3 = VizzuChart(key="vizzu3", height=200, width=180)
chart3.animate(data)

if "story" not in st.session_state:
Expand Down Expand Up @@ -113,8 +113,25 @@

# -- set config --
config = {"title": title, "y": y, "x": x, "color": color, "label": label}
config2 = {"title": "Share of Formats", "x": [measure, "Format"], "legend": None, "y": None, "coordSystem": "polar", "color": color, "label": "Format"}
config3 = {"title": "Top 3 Years", "y": measure, "x": {"set": "Year", "range":{"max":3}}, "sort": "byValue", "reverse": True, "legend": None, "color": None, "label": measure}
config2 = {
"title": "Share of Formats",
"x": [measure, "Format"],
"legend": None,
"y": None,
"coordSystem": "polar",
"color": color,
"label": "Format",
}
config3 = {
"title": "Top 3 Years",
"y": measure,
"x": {"set": "Year", "range": {"max": 3}},
"sort": "byValue",
"reverse": True,
"legend": None,
"color": None,
"label": measure,
}

config["sort"] = "byValue" if sort and stack_by != "Year" else "none"

Expand Down

0 comments on commit 16dea3f

Please sign in to comment.