displays graph