graph in front-end

A graph is shown in front-end.
review ping @oncletom