add support for optionally showing legend in full screen