API Reference
Namespaces
Classes
Events
Global
Externals

Class: DataLoader

CIQ. DataLoader


new DataLoader(params)

Loads static data from uploaded files into the chart for easier consumption.

Parameters:
Name Type Description
params object

Configuration parameters.

Properties
Name Type Description
stx CIQ.ChartEngine

A reference to the chart engine that contains the chart for which the DataLoader is created.

Since:
  • 8.4.0

Methods


DataLoader#formatData(dataObj, dataOptions)

Formats data into OHLC format readable by the CIQ.ChartEngine

Parameters:
Name Type Description
dataObj CIQ.CSVReader

CIQ.CSVReader which contains the parsed data

dataOptions FormData

FormData options that get the name of the imported data


DataLoader#importData(dataObj)

Imports data from a CIQ.CSVReader and loads it into the chart based on FormData parameters.

Parameters:
Name Type Description
dataObj CIQ.CSVReader

CIQ.CSVReader that contains parsed data