Skip to content

Commit

Permalink
vertical bar
Browse files Browse the repository at this point in the history
  • Loading branch information
svittoz committed May 30, 2024
1 parent eb0ffdb commit 30861df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eds_scikit/plot/table_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ def visualize_table(
alt.Chart(table_count)
.mark_bar()
.encode(
x="sum(count):Q",
x=col + ":N",
y="sum(count):Q",
color=alt.Color(col + ":N", scale=color_scale),
opacity=alt.condition(selections[col], alt.value(1), alt.value(0.3)),
tooltip=[col],
Expand Down Expand Up @@ -300,6 +301,7 @@ def visualize_table(
)
)
base_t = base_t.properties(width=width, height=height)
chart = chart.properties(width=width, height=height)

chart = (chart | base_t).properties(title=col)

Expand Down

0 comments on commit 30861df

Please sign in to comment.