For detecting the zoom with the roam option, try using one of the roam event listeners. For me, graphRoam did the job (for my graph type chart). Its params include a "zoom" property that shows you the current zoom-level.
roam
https://echarts.apache.org/en/api.html#events.graphroam