1. A computer-readable non-transitory storage medium storing therein a graph generation program that causes a computer to perform a procedure comprising: determining a graph type by analyzing character strings to be presented in an electronic document; and generating a graph of the graph type based on data of the electronic document.