Skip to content

GridConfig

Example

ts
{
  time: { color: '#e5e5e5', width: 1, style: 'solid' },
  value: { color: '#e5e5e5', width: 1, style: 'solid' }
}

Properties

time

Configuration for vertical grid lines drawn at each time axis tick. Set to false to hide, or provide a LineConfig object for custom styling.

value

Configuration for horizontal grid lines drawn at each value axis tick. Set to false to hide, or provide a LineConfig object for custom styling.

TypeScript

ts
interface GridConfig {
  time?: false | LineConfig;
  value?: false | LineConfig;
}

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