File size distribution graph? Is this possible?

I’m trying to create a file size distribution graph for a file system.

I’ve captured file.size within elasticsearch for 2000 files.

I would like a graph which has increasing file size along the bottom (from 0 bytes -> 1Gb) and then plot the file sizes on the y axis.

Is this possible?

If the file size is within each document that is easy. does each 2000 files have their own file size within the document?

Yes each document has a specific file.size field included.

any help on this would be greatly appreciated.