API Reference
Namespaces
Modules
Classes
Events
Global
Externals

Class: Discovery

Discovery (stx)


new Discovery(stx)

Creates a discoverability interface for the ChartIQ library.

Parameters:
Name Type Description
stx CIQ.ChartEngine

The chart engine instance.

Methods


chartTypeOptions( [key])

Retrieves the available chart type options from the chart configuration.

Parameters:
Name Type Argument Description
key string <optional>

Optional key to look up a specific chart type.

Returns:

An array of chart type options, or the library-ready value if key is provided.

Type
Array | string | null

getUnsupportedStudies()

Retrieves the study ids currently blocked from add/edit operations via the study command.

Since:
  • 10.6.0

Returns:

Unsupported study ids.

Type
Array.<string>

periodicityOptions( [key])

Retrieves the available periodicity options from the chart configuration.

Parameters:
Name Type Argument Description
key string <optional>

Optional key to look up a specific periodicity.

Returns:

An array of periodicity options, or the library-ready value [period, interval, timeUnit] if key is provided.

Type
Array | null

rangeOptions( [key])

Retrieves the available range options from the chart configuration.

Parameters:
Name Type Argument Description
key string <optional>

Optional key to look up a specific range.

Returns:

An array of range options, or the library-ready value [multiplier, base, interval, period, timeUnit] if key is provided.

Type
Array | null

seriesTypeOptions( [key])

Retrieves available series display types and their configurable style properties.

Parameters:
Name Type Argument Description
key string <optional>

Optional key to look up a specific series type.

Returns:

An array of series type options, or the specific type object if key is provided.

Type
Array | object | null