charton API / @chart-on/ui / index / createChartShell
Function: createChartShell()
createChartShell(
container,options?):ChartShell
Defined in: ui/src/shell.ts:403
Shell layout: toolbar on top, tool rail on the left, chart with a bottom bar. Requires @chart-on/ui/style.css.
Parameters
container
HTMLElement
options?
ChartShellOptions = {}
Returns
Example
ts
import { createChartShell, intervals } from '@chart-on/ui';
import '@chart-on/ui/style.css';
const { chart } = createChartShell(el, { toolbar: [intervals(['1m', '1h', '1d'])] });
chart.addCandles({ title: 'Price' }).setData(bars);