ripienaar / gdash

A dashboard for Graphite
http://www.devco.net/
Apache License 2.0
755 stars 117 forks source link

Detailed view - graph size #93

Closed toerkl closed 11 years ago

toerkl commented 11 years ago

Hi,

Is there an easy way to set a different height and width of the graphs in the detailed view, i.e. after you have clicked on one of the graphs on a dashboard? I would like to have them bigger there if possible.

T

falkenbt commented 11 years ago

I just realized that after switching to bootstrap thumbnails (https://github.com/ripienaar/gdash/pull/86) I can't figure out how to adjust the image size in all views. Any ideas?

bwhaley commented 11 years ago

Potential fix for this in bwhaley/gdash@4f4bfb7. Have not opened a PR yet. @lindqt01 @falkenbt Would you be willing to test out that commit?

toerkl commented 11 years ago

@bwhaley happy to try it but now sure how to do it.

falkenbt commented 11 years ago

@bwhaley I tested it, looks good. Can you send a pull request?

toerkl commented 11 years ago

Works like a charm! Thanks! Sorry, one last question. How do I specify a different size in the detailed view. Might want to have smaller thumbnail-like images on the dashboard and then bigger when clicking on a graph.

bwhaley commented 11 years ago

You can use ?width=xxx&height=yyy in the query parameters to change the size in any view.

bwhaley commented 11 years ago

Does this answer your questions @lindqt01 ?

toerkl commented 11 years ago

@bwhaley sorry a bit slow sometimes, thanks for the response. Do you put that in the URL then, in the browser, or somewhere else?

bwhaley commented 11 years ago

yes, in the URL. for example

http://gdash.example.com/my/dashboard/time/-1month/now?height=500&width=800

Or

http://gdash.example.com/my/dashboard/details/cpu/?height=500&width=800
toerkl commented 11 years ago

@bwhaley thanks a lot for your help.