Skip to main content
Version: v25

Chart

Default instrument and resolution

Change the default symbol (instrument) and resolution (time interval).

Minimum supported resolution is 1 second.

symbol, interval

Default visible range (timeframe)

Change time range of bars for the default resolution

timeframe

Default visible range for resolutions

Change time range of bars when the resolution is changed by the user. A sample is available here:

onIntervalChanged()

Initial timezone

You can set the default timezone. It can be changed by the user in the menu.

timezone

Chart colors

Customize the colors of the chart so that it matches your site design.

  1. Toolbar color
  2. Chart color at the start - overrides, on the fly - Chart Style properties
  3. CSS Color Themes

Default properties of a chart

You can change any available properties in the properties dialog.

  1. Initially
  2. On the fly

Show/hide chart elements

Certain chart elements (toolbars, buttons, other controls) can be hidden if you don't need them.

  1. Most of the chart elements can be shown/hidden by using Featuresets
  2. You can add your own CSS

Initial list of favorite intervals / chart styles

You can select the intervals and chart styles that will be shown in the top toolbar by default. A user can change it if items_favoriting is enabled in the Featuresets.

favorites

Resolutions that are displayed in the menu

  1. The complete list of resolutions is provided in the configuration of the datafeed
  2. Resolutions are enabled or disabled in the list being based on the symbol information
  3. Initial list of favorite resolutions can be adjusted

Context menu

You can add new elements to the context menu or hide the existing items.

onContextMenu(callback)