api function

See AmCharts API