mesa icon indicating copy to clipboard operation
mesa copied to clipboard

Viz: Implement Choice UserParam

Open EwoutH opened this issue 1 year ago • 1 comments

The old visualisation contained a Choice class which you could use to select one of multiple discrete/categorial options.

https://github.com/projectmesa/mesa/blob/53ce2945a1dfaca526e3b64965672940bec6f7a9/examples/advanced/pd_grid/pd_grid/server.py#L12-L16

It would be nice to have that in the new SolaraViz module. Maybe an boolean Checkbox would also be useful. For full context, NetLogo has these options you can place:

image

@Corvince would you take a shot at this?

EwoutH avatar Oct 16 '24 17:10 EwoutH

Many of these are already supported in the current code pace. Whe have space visualization and line plots for output. Text based output is available in solara and demonstrated in various examples (e.g. virus on a network).

SolaraViz supports Sliders for both int and float, a drop-down menu bar for select, and a selection via a checkbox.

So what is missing in your view?

quaquel avatar Oct 31 '24 08:10 quaquel