import { AgChartOptions } from '@ag-grid-community/core' ; import * as agCharts from 'ag-charts-community' ; const options = { container : document . getElementById ( 'myChart' ) , autoSize : true , data : getData ( ) , title : { text : 'People Born' , } , subtitle : { text : '2008-2020' , } , series : [ { xKey : 'year' , yKey : 'visitors' , } , ] , legend : { enabled : false , } , } ; agCharts . AgChart . create ( options ) ;