Learn about creating and updating charts in more detail.
 Creating and Updating Charts Copy Link  
AgChartOptions are supplied to the AG Charts component, and mutations of the options trigger an update of the chart configuration.
See the Options Reference for more detail about the AgChartOptions structure.
The following example demonstrates both create and update cases:
- Definition of an 
optionsobject used to create the initial chart state. - Buttons that invoke mutations of the 
optionsand trigger update of the chart state. 
 Destroying Charts Copy Link  
Charts are automatically destroyed when the AG Charts component is removed from the DOM.