Scripted dashboard with elasticsearch datasource

Hi, I’m trying to create a scripted dashboard to generate dynamic panels base on data located in my elasticsearch data source using ajax. However I can’t seem to find an article or documentation that would guide me to do so. Does anyone have such example of insight on how to do this ?

Thank you.