User-Toggle Y-Axis Scale?

I would like to let views of a dashboard selectively change the Y-Axis scale using a custom Variable. eg (Linear,Log10). Is there any approach to use variables to set graph parameter like this? Can I include the variable in the json definition of the scale setting?