Generalize rendering of graphs