Adding Badge code to CDiGraph