I checked the condition when user click the icon and show the graph.