Skip to content

Commit

Permalink
tooltip semplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico committed Mar 15, 2024
1 parent 1221686 commit 9baf66e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mesa/experimental/components/altair.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ def portray(g):
# no y-axis label
"y": alt.Y("y", axis=None, type="ordinal"),
"tooltip": [
alt.Tooltip(
key, type=alt.utils.infer_vegalite_type([all_agent_data[0][key]])
)
for key in all_agent_data[0]
alt.Tooltip(key, type=alt.utils.infer_vegalite_type([value]))
for key, value in all_agent_data[0].items()
if key not in invalid_tooltips
],
}
Expand Down

0 comments on commit 9baf66e

Please sign in to comment.