Skip to main content

resize

fires on changing the size of the chart container

resize: (width: number, height: number) => void;

Parameters:

size: object - an 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 sample: Chart. Events