Marks
Marks allow you to display some extra information like news, bar patterns, splits/dividends, and more on the chart or time scale.
Use the subscribe method to handle events raised when users interact with marks. You can also refresh and clear marks using the chart methods.
Marks on the chart
Marks on the chart are circles that are attached to bars and contain a character inside. You can customize the circle size and color. If you want to display two characters (like 'ED', 'AB', 'CD', etc.), you should enable the two_character_bar_marks_labels featureset.
One bar can have several marks. When a user hovers over the mark on desktop or taps it on a touch device, a tooltip appears. The tooltip contains plain text only and does not support HTML code. However, in Trading Platform you can render fully custom tooltip content — styled text, links, images, and more — with your own web component. Refer to the Customize mark tooltips guide for more information.
You can also enable the pin_bar_mark_tooltips_on_click featureset to reveal the tooltip on click instead of on hover and keep it pinned open.

Marks are requested from your datafeed if you set supports_marks to true. The library calls getMarks or requests /marks to get mark data for the visible data range.
Marks on the time scale
Marks on the time scale are figures above the time scale. Each mark has a character inside and a pop-up tooltip with information strings. The tooltip does not support HTML code. However, in Trading Platform you can render fully custom tooltip content — styled text, links, images, and more — with your own web component. Refer to the Customize mark tooltips guide for more information.
You can specify a time scale mark shape using the shape property. Images can be displayed within time scale marks by providing an image URL in the imageUrl property.

Time scale marks are requested from your datafeed if you set supports_timescale_marks to true. The library calls getTimescaleMarks or requests /timescale_marks to get mark data for the visible data range.