add support for optionally showing legend in full screen

This pull request adds a toggle in graph settings to only show the legend in full screen mode. The rationale is that I do not want legends cluttering up my dashboards consisting of many graphs but they are often useful to see in full screen mode due to the min/max/avg/total statistics.