Dynamically modify the Range

Hi,

I am using extendTraces.

This is my code

    	var update ={	  
			   x:[x],
			   y:[y],
			   z:[z],
			   text:[tiptext],
	 };

Plotly.extendTraces(divname, update, [0],500);

Appending new data to old data. Based on chart data I need to change the range.

Thanks In Advance.
Regards
Lavanya.