To set the 'min' and 'max' value in a gauge through query

Hi, I am trying to set the min and max value through query in a gauge so is it possible??
And I have tried to make changes in grafana library which are not reflecting, so is it not possible to do changes in library? Please help me to solve this issue…