open the graph is not working on click