Skip to main content
Version: 3.8

Function: createChart()

createChart(container, options?): IChartApi

This function is the main entry point of the Lightweight Charting Library.

Parameters

container: string | HTMLElement

ID of HTML element or element itself

options?: DeepPartial <ChartOptions>

Any subset of options to be applied at start.

Returns

IChartApi

An interface to the created chart