graph drawing tool
scale = function(d)
	if d == nil then return nil end
	return d*Viewport.zoom
end