Skip to content

Tooltips

Customize the OHLC tooltip that shows open, high, low, close, and volume data.

← Back to Custom Styles overview

Copy the property path into your setCustomStyles config. You only need to include the values you want to change.

PropertyDescriptionTypeExample
candle.tooltip.showRuleWhen the tooltip appears. always = always visible, follow_cross = follows crosshair, none = hidden'always' | 'follow_cross' | 'none''always'
candle.tooltip.showTypeTooltip layout style'standard' | 'rect''standard'
candle.tooltip.title.showShow tooltip title rowbooleantrue
candle.tooltip.title.templateTitle text templatestring'{ticker} · {period}'
candle.tooltip.title.colorColor of title textcolor'#76808F'
candle.tooltip.title.sizeFont size of title textnumber14
candle.tooltip.legend.colorColor of OHLC value textcolor'#76808F'
candle.tooltip.legend.sizeFont size of OHLC valuesnumber12
candle.tooltip.legend.defaultValueText shown when a value is missingstring'n/a'
candle.tooltip.rect.colorBackground color of tooltip boxcolor'#FEFEFE'
candle.tooltip.rect.borderColorBorder color of tooltip boxcolor'#F2F3F5'
candle.tooltip.rect.borderSizeBorder thickness of tooltip boxnumber1
candle.tooltip.rect.borderRadiusCorner roundness of tooltip boxnumber4
candle.tooltip.rect.positionWhere the tooltip is anchored'fixed' | 'pointer''fixed'

Example

typescript
chart.setCustomStyles({
  dark: {
    candle: {
      tooltip: {
        legend: { color: '#e0e0e0' },
      },
    },
  },
})

Developers who need full TypeScript interfaces can use the type reference.