Open ProfEiz opened 8 months ago
I don't think transforms accepts parameters yet. The docs mention that you can only use a number https://altair-viz.github.io/user_guide/transform/loess.html. This would need to be implemented in Vega-Lite before it becomes available in altair..
It seems that it is not possible to create a slider bar / interactive parameter for a transform, like LOESS.
chart + chart.transform_loess('horsepower','mpg', bandwidth= loess_var).mark_line()`
Code above will not accept the bandwidth = slider-value parameter, though if I simply set the loess variable equal to a valid number, it works fine.
Separately, scipy.interpolation has a really nice cubic spline that is likely a better local smoother. But I assume that same problem will apply.
Expected use behavior would be to allow users to "tune" the LOESS interactively.