Skip to content
Back to skills

Gridline

ASecurity

Background grid patterns for charts. Supports dashed lines in x/y/both directions and alternating stripe fills.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aireact

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add reaviz/skills --skill gridline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gridline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gridline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reaviz-gridline/badge)](https://www.skillsdirectory.com/skills/reaviz-gridline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Gridline

Background grid patterns for charts. Supports dashed lines in x/y/both directions and alternating stripe fills.

## Import

```tsx
import { GridlineSeries, Gridline, GridStripe } from 'reaviz';
```

## GridlineSeries Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `line` | `ReactElement<GridlineProps> \| null` | `<Gridline direction="all" />` | Gridline component |
| `stripe` | `ReactElement<GridStripeProps> \| null` | — | Grid stripe component |

## Gridline Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `direction` | `'all' \| 'x' \| 'y'` | `'all'` | Which axes to draw lines for |
| `strokeWidth` | `number` | `1` | Line thickness |
| `strokeColor` | `string` | `'rgba(153, 153, 153, 0.5)'` | Line color |
| `strokeDasharray` | `string` | `'2 5'` | Dash pattern |
| `className` | `string` | — | CSS class |

## GridStripe Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `fill` | `string` | `'#393c3e'` | Stripe fill color |
| `position` | `'horizontal' \| 'vertical'` | — | Stripe direction |
| `direction` | `'all' \| 'x' \| 'y'` | — | Which axes |
| `className` | `string` | — | CSS class |

## Default Gridlines

```tsx
// Already included by default in most charts
<AreaChart data={data} gridlines={<GridlineSeries />} />
```

## Horizontal Lines Only

```tsx
<GridlineSeries line={<Gridline direction="y" />} />
```

## Vertical Lines Only

```tsx
<GridlineSeries line={<Gridline direction="x" />} />
```

## Custom Color and Style

```tsx
<GridlineSeries
  line={
    <Gridline
      direction="all"
      strokeColor="rgba(255, 255, 255, 0.1)"
      strokeDasharray="5 10"
      strokeWidth={0.5}
    />
  }
/>
```

## Striped Background

```tsx
<GridlineSeries
  line={<Gridline direction="y" />}
  stripe={<GridStripe fill="rgba(255, 255, 255, 0.03)" />}
/>
```

## No Gridlines

```tsx
<AreaChart data={data} gridlines={null} />
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.