How to create Grafana scripted Dashboard with InfluxDB

Hi,

How to create scripted dashboard using influxdb as datasource.
I followed http://docs.grafana.org/reference/scripting/ but I am not able to create the scripted dashboards. Please anyone can share any documentation on this topic. Or any example file.