Skip to content

Commit

Permalink
Altair viz: Hardcode width/height consistent with Card width/height
Browse files Browse the repository at this point in the history
  • Loading branch information
rht authored and Corvince committed Feb 24, 2024
1 parent 6cbe17a commit 777f42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/experimental/components/altair.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def portray(g):
alt.Data(values=all_agent_data), encoding=alt.Encoding(**encoding_dict)
)
.mark_point(filled=True)
.properties(width=space.width * 15, height=space.height * 15)
.properties(width=280, height=280)
# .configure_view(strokeOpacity=0) # hide grid/chart lines
)

Expand Down

0 comments on commit 777f42e

Please sign in to comment.