Custom features

Hello,

I work in a major company located in Catalonia that uses Grafana extensively to monitor network devices, due to confidentiality, I can not say which company it is. The question is: it is possible to create a variable, say a Boolean for example, which is passed to a Json code and makes it possible to enable or disable some features of the panels in the dashboard. For example, a variable that makes it possible in the dashboard to enable or disable the legend in the panels, or a variable that makes it possible to switch between the black and white modes. It could be very useful to have this feature. Thank you in advance.

Regards,

Oscar Romeu