resize

fires on changing the size of the chart container

void resize(object size){ ... };

Parameters

sizeobjectan object with new chart size

Example

chart.events.on("Resize", function({width:500, height:500}){
    console.log("The size of the chart has changed");
});

Related samples

Back to top