import { AgChartOptions } from '@ag-grid-community/core' ; import * as agCharts from 'ag-charts-community' ; const options = { container : document . getElementById ( 'myChart' ) , title : { text : 'Internet Explorer Market Share' , } , subtitle : { text : '2009-2019 (aka "good times")' , } , data : getData ( ) , series : [ { type : 'area' , xKey : 'year' , yKeys : [ 'ie' ] , yNames : [ 'IE' ] , } , ] , legend : { enabled : false , } , } ; agCharts . AgChart . create ( options ) ;