Plotting calculated field in Kibana 4

Hi

I need to plot average order value over time which is sum(gross_order_value)/count(order.id) for that selected time. How do I do this in Kibana 4?

Regards

You can use a scripted field to achieve this.