How to make hd.datashade aggregator and color_key parameters dependent on widget value?

I had the same question: Datashader change aggregator with panel widget