OHLCSeriesTypes: {
    AutomaticPacking: typeof OHLCSeriesWithAutomaticPacking;
    Normal: typeof OHLCSeriesTraditional;
} = ...

Collection of OHLCSeries types.

By default, OHLCSeries will be OHLCSeriesTraditional, but different types can be created with these options. Note, that based on the selection the Series can have different API!

Example usage:

// Create OHLCSeries with automatic packing
ChartXY.addOHLCSeries(undefined, undefined, undefined, undefined, OHLCSeriesTypes.AutomaticPacking)

Type declaration

  • AutomaticPacking: typeof OHLCSeriesWithAutomaticPacking

    OHLCSeries type that takes data as X-progressive Points. The Series automatically packs these into OHLC-segments.

    If this option is selected, the "add()"-method of the created Series will only accept Points, rather than XOHLC-values.

  • Normal: typeof OHLCSeriesTraditional

    OHLCSeries type that takes data traditionally in XOHLC-tuples.