import { AgChartOptions } from '@ag-grid-community/core' ; import * as agCharts from 'ag-charts-community' ; declare var data ; const options = { type : 'hierarchy' , container : document . getElementById ( 'myChart' ) , data , series : [ { type : 'treemap' , labelKey : 'orgHierarchy' , colorParents : true , gradient : false , nodePadding : 5 , sizeKey : undefined , colorKey : undefined , colorDomain : [ 0 , 2 , 4 ] , colorRange : [ '#d73027' , '#fee08b' , '#1a9850' ] , } , ] , title : { text : 'Organizational Chart' , } , subtitle : { text : 'of a top secret startup' , } , } ; agCharts . AgChart . create ( options ) ;