ruby graph generator