I want to create variables in Grafana that generate the graph by creating flux query of InfluxDB 2.0

Hi Team, I am new in Grafana, and I have integrated Grafana 6.5 with Influx DB 2.0 by installing plugins of influxdb 2.0 beta version. As it supports only flux query and want to create a User-friendly dashboard for this I want to create 4-5 variables and that has to link with the dashboard. When I select value for dropdownlist new flux query has to generate internally and hit the InfluxDB in return I need to generate line graph. Please help me here.