Semi-working graph, something wrong as the graph is not a smooth display