Skip to content

TimeCrosshairConfig

Example

ts
{
  line: { color: '#1a1a1a', width: 1, style: 'dashed' },
  label: { backgroundColor: 'white', borderColor: '#1a1a1a' }
}

Properties

line

Configuration for the crosshair line. Set to false to hide the line, or provide a LineConfig object for custom styling.

label

Configuration for the crosshair label. Set to false to hide the label, or provide a TimeCrosshairLabelConfig object for custom styling.

TypeScript

ts
interface TimeCrosshairConfig {
  line?: false | LineConfig;
  label?: false | TimeCrosshairLabelConfig;
}

React Candlesticks is available on npm and GitHub under the MIT License.