Hide the graph using jquery