updating scatter and utils to make utils more generic so we can use it for other graphs.