How to use es multi aggregations in Grafana

as the above picture shows, how to use the multi aggregations in Grafana?
In Grafana, bucket_script only support get params from metrics?