GetFirstChartId

Description

The GetFirstChartId method retrieves the ID of the first chart in the list of available charts.

Syntax

public GetFirstChartId(): number

Return Value

Returns a number representing the ID of the first chart. Returns -1 if no charts are available.

Example

const firstChartId = this.api.GetFirstChartId()
if (firstChartId !== -1) {
    console.log(`First chart ID: ${firstChartId}`)
} else {
    console.log('No charts available')
}

Last updated