frontend example: graph