altair icon indicating copy to clipboard operation
altair copied to clipboard

Configure parameters (here scales) of plot interactively

Open Make42 opened this issue 4 years ago • 5 comments

Would it be possible to add the possiblity to add a radio button, a checkbox or something similar to allow parametrization of the plot that is not the data directly? I would like to use a checkbox to indicate whether an axis (here the x-axis) should be displayed normally or in log-scale.

Make42 avatar Apr 01 '21 13:04 Make42

This is something that would need to be added to Vega-Lite before it would be available in Altair. You can ask on their issue tracker to find out if there are anyplans for it (there might already be an open issue).

joelostblom avatar Apr 01 '21 18:04 joelostblom

@joelostblom : Is the answer of https://github.com/vega/vega-lite/issues/7361 helping? I am so new, that I am not sure exactly what domoritz is talking about.

Make42 avatar Apr 05 '21 17:04 Make42

params is what selections have evolved into in Vega-Lite 5.0. Altair doesn't yet support this.

jakevdp avatar Apr 05 '21 17:04 jakevdp

Just checking on this - am I right in understanding that it is not possible to use params in altair as of now?

mjohnson11 avatar Jan 03 '22 20:01 mjohnson11

Yes. It's not supported yet. Follow PR https://github.com/altair-viz/altair/pull/2528 for this feature.

mattijn avatar Jan 03 '22 20:01 mattijn

With the release of Altair 5, you can now use Parameters which should address this use case.

binste avatar May 27 '23 06:05 binste