ryantxu / ajax-panel

Ajax Panel Plugin for Grafana
MIT License
156 stars 154 forks source link

Passing panel width in request #14

Open davidohana opened 6 years ago

davidohana commented 6 years ago

Great plugin!

However, is it possible somehow to pass the Grafana panel width in the request args the same fashion that height is supported?

I tried using { height:ctrl.height, width:ctrl.width } in the Parameters (via javascript) section, but width in query string is empty.

e.g: "GET /panels/chart/6?height=355&width= HTTP/1.1" 200

I am trying to return a plot in an iframe so this is really important in this case.

I'll appreciate any workaround / nasty hack / guidance just to get this working.

Thanks David