Skip to content

charton API


charton API / @chart-on/ui / index / createBottomBar

Function: createBottomBar() ​

createBottomBar(host, chart, input?): ToolbarHandle

Defined in: ui/src/bottombar.ts:480

A bar along the bottom of the chart, appended to host. It takes items as the toolbar does (goToDate, clock, timezoneMenu, scaleMode and the other presets, or any toolbar item), or BottomBarOptions for defaultBottomBarItems. Popups and tooltips in it open upwards.

Parameters ​

host ​

HTMLElement

chart ​

Chart

input? ​

BottomBarInput = {}

Returns ​

ToolbarHandle

Example ​

ts
createBottomBar(el, chart, [goToDate(), clock(), scaleMode()]);