jquery - How to delete graph on click -


here highchart custom button code want close graph on click of custom button.

    exporting: {         buttons: {             custombutton: {                 x: -62,                 onclick: function () {                     alert("i want delete graph here");                 },                 symbol: 'circle'             }         }     } 

js fiddle

in documentation, there method destroy() jsfiddle example : http://api.highcharts.com/highcharts#chart.destroy

working jsfiddle

exporting: {         buttons: {             custombutton: {                 x: -62,                 onclick: function () {                     chart.destroy();                 },                 symbol: 'circle'             }         }     } 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -