Script field

Hello i've a problem.
I want to make a data table with percentile, but i don't know how to make.
I get 4 result and i want to transform it to pourcentile.
I dont know the script "lucene".

I want that :
https://i.imgur.com/QTUF8YN.png

Thanks to help me ! And sorry for my bad english.

I want that exactly :
https://i.imgur.com/5oZtHjM.png

up !!

Hmm, this isn't exactly possible how you want it here. The closest thing I can suggest is to create a pie chart, in which case the percentage will be listed next to the count.

There's an open enhancement request here you could also follow:

Ok thank's, and it's possible to make Trends like in Kibana 3 ?