Generate unique name if necessary when creating a visualization