Define graph rendere via class