# Increase zoom and decrease zoom in gojs

Hi

I given below

myDiagram.commandHandler.decreaseZoom(2);

when i invoke above command. It is not decreasing the diagram size. Instead of decreasing It is increasing

I invoked myDiagram.commandHandler.canDecreaseZoom(1) it is given true.

As documented CommandHandler | GoJS API, if given an argument, must take a value less than one.

tyed as mentioned in the document

myDiagram.commandHandler.decreaseZoom(-1.5);

tryed with myDiagram.commandHandler.decreaseZoom(-2); too

i got this working. thanks

myDiagram.commandHandler.decreaseZoom(0.5);