Skip to content
EliteChart

OhlcvLegendStyle

Documentation


Documentation / @elitechart/core / OhlcvLegendStyle

Defined in: renderer/ohlcv-legend.ts:31

Style hooks for the OHLCV legend. Embedders override by spreading over DEFAULT_OHLCV_LEGEND_STYLE and passing the result to drawOhlcvLegend.

Example

code
const style: OhlcvLegendStyle = {
  ...DEFAULT_OHLCV_LEGEND_STYLE,
  font: '11px ui-monospace',
  bullColor: '#22c55e',
};

Properties

bearColor

code
readonly bearColor: string;

Defined in: renderer/ohlcv-legend.ts:35


bullColor

code
readonly bullColor: string;

Defined in: renderer/ohlcv-legend.ts:34


font

code
readonly font: string;

Defined in: renderer/ohlcv-legend.ts:32


labelColor

code
readonly labelColor: string;

Defined in: renderer/ohlcv-legend.ts:33


neutralColor

code
readonly neutralColor: string;

Defined in: renderer/ohlcv-legend.ts:36


offsetX

code
readonly offsetX: number;

Defined in: renderer/ohlcv-legend.ts:38

Left inset from plotLeft.


offsetY

code
readonly offsetY: number;

Defined in: renderer/ohlcv-legend.ts:40

Top inset from plotTop.