Skip to main content
Version: Next

Function: createChart()

createChart(container, options?): IChartApi

This function is the simplified main entry point of the Lightweight Charting Library with time points for the horizontal scale.

Parameters​

• container: string | HTMLElement

ID of HTML element or element itself

• options?: DeepPartial <TimeChartOptions>

Any subset of options to be applied at start.

Returns​

IChartApi

An interface to the created chart