How to create Overview bubble graph for custom metric

Hi,
Please, could you provide a code sample if it possible to create a custom “overview”?
I would like to have a custom bubble graph for my measurement