import { AgChartOptions } from '@ag-grid-community/core' ; import * as agCharts from 'ag-charts-community' ; const options = { container : document . getElementById ( 'myChart' ) , autoSize : true , title : { text : 'Average expenditure on coffee' , } , subtitle : { text : 'per person per week in Krakozhia' , } , data : [ { year : '2015' , spending : 35 , } , { year : '2016' , spending : 40 , } , { year : '2017' , spending : 43 , } , { year : '2018' , spending : 44 , } , ] , series : [ { xKey : 'year' , yKey : 'spending' , } , ] , } ; agCharts . AgChart . create ( options ) ;