---
product: "AG Charts"
title: "Cross Lines"
description: "Axes Cross Lines are lines or shaded areas in a React chart that provide additional info or thresholds to aid data analysis. Supports Cartesian and Polar Axes."
framework: react
version: "14.3.0"
related:
    - title: "Legend"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/legend/"
    - title: "Formatters"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/formatters/"
    - title: "Stylers"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/stylers/"
    - title: "Series Bars"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/bars/"
    - title: "Series Fills"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/fills/"
    - title: "Series Labels"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/series-labels/"
    - title: "Series Markers"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/markers/"
    - title: "Style Segments"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/style-segments/"
    - title: "Annotations"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/annotations/"
    - title: "Background Regions"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/background-regions/"
    - title: "Colour Scale"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/colour-scale/"
    - title: "Error Bars"
      url: "https://www.ag-grid.com/charts/archive/14.3.0/react/error-bars/"
llms: "https://www.ag-grid.com/charts/archive/14.3.0/llms.txt"
---

# Cross Lines

Cross Lines are lines or shaded areas in a chart that denote additional information or thresholds, making them useful for data analysis.

## Adding Cross Lines

To add a Cross Line at a specific data value on an axis, use the `crossLines` property in the `axis` options.

A Cross Line can either be a `line` or a `range`, and multiple Cross Lines can be added to a single axis.

#### Adding Cross Lines

```tsx
import React, { useState } from "react";
import { createRoot } from "react-dom/client";
import { AgCharts } from "ag-charts-react";
import {
  AgChartOptions,
  CategoryAxisModule,
  CrossLinesModule,
  LegendModule,
  LineSeriesModule,
  ModuleRegistry,
  NumberAxisModule,
} from "ag-charts-community";
import { getData } from "./data";

ModuleRegistry.registerModules([
  CategoryAxisModule,
  CrossLinesModule,
  LegendModule,
  LineSeriesModule,
  NumberAxisModule,
]);

const ChartExample = () => {
  const [options, setOptions] = useState<AgChartOptions>({
    data: getData(),
    series: [
      {
        type: "line",
        xKey: "month",
        yKey: "temp",
      },
    ],
    axes: {
      x: {
        type: "category",
        title: {
          text: "Month",
        },
        crossLines: [
          {
            type: "range",
            range: ["Jun", "Sep"],
          },
        ],
      },
      y: {
        type: "number",
        title: {
          text: "Temperature (°C)",
        },
        crossLines: [
          {
            type: "line",
            value: 11,
          },
        ],
      },
    },
  });

  return <AgCharts options={options} />;
};

const root = createRoot(document.getElementById("root")!);
root.render(<ChartExample />);
```

[Live example: Adding Cross Lines](https://www.ag-grid.com/charts/archive/14.3.0/reactFunctionalTs/axes-cross-lines/examples/axis-cross-lines-adding/)

```js
{
    axes: {
        y: {
            type: 'number',
            crossLines: [
                {
                    type: 'line',
                    value: 11,
                },
            ],
        },
        x: {
            type: 'category',
            crossLines: [
                {
                    type: 'range',
                    range: ['Jun', 'Sep'],
                },
            ],
        },
    },
}
```

In this configuration:

- A `line` is displayed on the vertical axis at value 11.
- A `range` is displayed on the horizontal axis between June and September.
- The `value` or `range` values should be the same types as those displayed in the axis.

## Customising Cross Lines

#### Customising Cross Lines

```tsx
import React, { useState } from "react";
import { createRoot } from "react-dom/client";
import { AgCharts } from "ag-charts-react";
import {
  AgChartOptions,
  CrossLinesModule,
  LegendModule,
  LineSeriesModule,
  ModuleRegistry,
  NumberAxisModule,
  UnitTimeAxisModule,
} from "ag-charts-community";
import { getData } from "./data";

ModuleRegistry.registerModules([
  CrossLinesModule,
  LegendModule,
  LineSeriesModule,
  NumberAxisModule,
  UnitTimeAxisModule,
]);

const ChartExample = () => {
  const [options, setOptions] = useState<AgChartOptions>({
    data: getData(),
    series: [
      {
        type: "line",
        xKey: "date",
        yKey: "petrol",
        yName: "Petrol",
      },
      {
        type: "line",
        xKey: "date",
        yKey: "diesel",
        yName: "Diesel",
      },
    ],
    axes: {
      x: {
        type: "unit-time",
        title: {
          text: "Date",
        },
        crossLines: [
          {
            type: "range",
            range: [new Date(2019, 4, 1), new Date(2019, 6, 1)],
            strokeWidth: 0,
            fill: "#7290C4",
            fillOpacity: 0.4,
            label: {
              text: "Price Peak",
              placement: "top",
              fontSize: 14,
              fill: "#7290C4",
              fillOpacity: 0.4,
              cornerRadius: 4,
              border: {
                stroke: "#7290C4",
              },
            },
          },
        ],
      },
      y: {
        type: "number",
        title: {
          text: "Price in pence",
        },
        crossLines: [
          {
            type: "line",
            value: 142.45,
            stroke: "#7290C4",
            lineDash: [6, 12],
            label: {
              text: "142.4",
              placement: "right",
              fontSize: 12,
              color: "#000000",
            },
          },
          {
            type: "line",
            value: 133.8,
            stroke: "#7290C4",
            lineDash: [6, 12],
            label: {
              text: "133.8",
              placement: "right",
              fontSize: 12,
              color: "#01c185",
            },
          },
          {
            type: "line",
            value: 135.35,
            stroke: "#D21E75",
            lineDash: [2, 4],
            label: {
              text: "135.3",
              placement: "right",
              fontSize: 12,
              color: "#000000",
            },
          },
          {
            type: "line",
            value: 123.97,
            stroke: "#D21E75",
            lineDash: [2, 4],
            label: {
              text: "124.0",
              placement: "right",
              fontSize: 12,
              color: "#01c185",
            },
          },
        ],
      },
    },
  });

  return <AgCharts options={options} />;
};

const root = createRoot(document.getElementById("root")!);
root.render(<ChartExample />);
```

[Live example: Customising Cross Lines](https://www.ag-grid.com/charts/archive/14.3.0/reactFunctionalTs/axes-cross-lines/examples/axis-cross-lines-customising/)

```js
{
    crossLines: [
        {
            type: 'range',
            range: [new Date(2019, 4, 1), new Date(2019, 6, 1)],
            strokeWidth: 0,
            fill: '#7290C4',
            fillOpacity: 0.4,
            label: {
                text: 'Price Peak',
                placement: 'top',
                fontSize: 14,
            },
        },
    ],
}
```

In this configuration:

- Properties such as `stroke`, `strokeWidth`, and `fill` are used to customise the Cross Line.
- A label is added, customised and placed in relation to the Cross Line. See [Label Placement](https://www.ag-grid.com/charts/archive/14.3.0/react/axes-cross-lines/#label-placement) for more details.

## Label Placement

Use `label.placement` to choose where a label sits relative to its Cross Line. The default is `top`.

#### Label Placement

```tsx
import React, { useState, Fragment } from "react";
import { createRoot } from "react-dom/client";
import { AgCharts } from "ag-charts-react";
import {
  AgCartesianChartOptions,
  AgCartesianCrossLineLabelPlacement,
  CrossLinesModule,
  LineSeriesModule,
  ModuleRegistry,
  NumberAxisModule,
  TimeAxisModule,
} from "ag-charts-community";
import { getData } from "./data";
import clone from "clone";

ModuleRegistry.registerModules([
  CrossLinesModule,
  LineSeriesModule,
  NumberAxisModule,
  TimeAxisModule,
]);

const ChartExample = () => {
  const [options, setOptions] = useState<AgCartesianChartOptions>({
    data: getData(),
    title: {
      text: "Monthly Revenue",
    },
    series: [
      {
        type: "line",
        xKey: "month",
        yKey: "revenue",
        yName: "Revenue",
      },
    ],
    axes: {
      x: {
        type: "time",
        crossLines: [
          {
            type: "line",
            value: new Date(2025, 9, 1),
            label: { text: "Launch", placement: "left-top" },
          },
          {
            type: "range",
            enabled: false,
            range: [new Date(2025, 5, 1), new Date(2025, 7, 1)],
            label: { text: "Promotion", placement: "top" },
          },
        ],
      },
      y: {
        type: "number",
        title: {
          text: "Revenue (£k)",
        },
        crossLines: [
          {
            type: "line",
            enabled: false,
            value: 250,
            label: { text: "Target", placement: "top" },
          },
          {
            type: "range",
            range: [180, 210],
            label: { text: "Baseline", placement: "inside-top-left" },
          },
        ],
      },
    },
  });

  const setPlacement = (
    axis: "x" | "y",
    type: "line" | "range",
    placement: AgCartesianCrossLineLabelPlacement,
  ) => {
    const nextOptions = clone(options);

    for (const crossLine of nextOptions.axes![axis]!.crossLines!) {
      if (crossLine.type === type) {
        crossLine.label!.placement = placement;
      }
    }

    setOptions(nextOptions);
  };

  const toggleCrossLine = (
    axis: "x" | "y",
    type: "line" | "range",
    enabled: boolean,
  ) => {
    const nextOptions = clone(options);

    for (const crossLine of nextOptions.axes![axis]!.crossLines!) {
      if (crossLine.type === type) {
        crossLine.enabled = enabled;
      }
    }

    setOptions(nextOptions);
  };

  return (
    <Fragment>
      <div className="example-controls">
        <div className="controls-row">
          <span className="gap-right">X Axis:</span>
          <input
            type="checkbox"
            id="xLine"
            defaultChecked
            onChange={(event) =>
              toggleCrossLine("x", "line", event.target.checked)
            }
          />
          <label htmlFor="xLine">Line</label>
          <input
            type="checkbox"
            id="xRange"
            className="gap-left"
            onChange={(event) =>
              toggleCrossLine("x", "range", event.target.checked)
            }
          />
          <label htmlFor="xRange" className="gap-right">
            Range
          </label>
          <label htmlFor="xLinePlacement">Line Placement:</label>
          <select
            id="xLinePlacement"
            className="gap-right"
            onChange={(event) => setPlacement("x", "line", event.target.value)}
          >
            <option value="left-top">left-top</option>
            <option value="top">top</option>
            <option value="bottom">bottom</option>
            <option value="left">left</option>
            <option value="left-bottom">left-bottom</option>
            <option value="right">right</option>
            <option value="right-top">right-top</option>
            <option value="right-bottom">right-bottom</option>
            <option value="inside">inside</option>
            <option value="inside-top">inside-top</option>
            <option value="inside-bottom">inside-bottom</option>
          </select>
          <label htmlFor="xRangePlacement">Range Placement:</label>
          <select
            id="xRangePlacement"
            onChange={(event) => setPlacement("x", "range", event.target.value)}
          >
            <option value="top">top</option>
            <option value="top-left">top-left</option>
            <option value="top-right">top-right</option>
            <option value="bottom">bottom</option>
            <option value="bottom-left">bottom-left</option>
            <option value="bottom-right">bottom-right</option>
            <option value="left">left</option>
            <option value="left-top">left-top</option>
            <option value="left-bottom">left-bottom</option>
            <option value="right">right</option>
            <option value="right-top">right-top</option>
            <option value="right-bottom">right-bottom</option>
            <option value="inside">inside</option>
            <option value="inside-top">inside-top</option>
            <option value="inside-bottom">inside-bottom</option>
            <option value="inside-left">inside-left</option>
            <option value="inside-right">inside-right</option>
            <option value="inside-top-left">inside-top-left</option>
            <option value="inside-top-right">inside-top-right</option>
            <option value="inside-bottom-left">inside-bottom-left</option>
            <option value="inside-bottom-right">inside-bottom-right</option>
          </select>
        </div>
        <div className="controls-row">
          <span className="gap-right">Y Axis:</span>
          <input
            type="checkbox"
            id="yLine"
            onChange={(event) =>
              toggleCrossLine("y", "line", event.target.checked)
            }
          />
          <label htmlFor="yLine">Line</label>
          <input
            type="checkbox"
            id="yRange"
            className="gap-left"
            defaultChecked
            onChange={(event) =>
              toggleCrossLine("y", "range", event.target.checked)
            }
          />
          <label htmlFor="yRange" className="gap-right">
            Range
          </label>
          <label htmlFor="yLinePlacement">Line Placement:</label>
          <select
            id="yLinePlacement"
            className="gap-right"
            onChange={(event) => setPlacement("y", "line", event.target.value)}
          >
            <option value="top">top</option>
            <option value="top-left">top-left</option>
            <option value="top-right">top-right</option>
            <option value="bottom">bottom</option>
            <option value="bottom-left">bottom-left</option>
            <option value="bottom-right">bottom-right</option>
            <option value="left">left</option>
            <option value="right">right</option>
            <option value="inside">inside</option>
            <option value="inside-left">inside-left</option>
            <option value="inside-right">inside-right</option>
          </select>
          <label htmlFor="yRangePlacement">Range Placement:</label>
          <select
            id="yRangePlacement"
            onChange={(event) => setPlacement("y", "range", event.target.value)}
          >
            <option value="inside-top-left">inside-top-left</option>
            <option value="top">top</option>
            <option value="top-left">top-left</option>
            <option value="top-right">top-right</option>
            <option value="bottom">bottom</option>
            <option value="bottom-left">bottom-left</option>
            <option value="bottom-right">bottom-right</option>
            <option value="left">left</option>
            <option value="left-top">left-top</option>
            <option value="left-bottom">left-bottom</option>
            <option value="right">right</option>
            <option value="right-top">right-top</option>
            <option value="right-bottom">right-bottom</option>
            <option value="inside">inside</option>
            <option value="inside-top">inside-top</option>
            <option value="inside-bottom">inside-bottom</option>
            <option value="inside-left">inside-left</option>
            <option value="inside-right">inside-right</option>
            <option value="inside-top-right">inside-top-right</option>
            <option value="inside-bottom-left">inside-bottom-left</option>
            <option value="inside-bottom-right">inside-bottom-right</option>
          </select>
        </div>
      </div>
      <AgCharts options={options} />
    </Fragment>
  );
};

const root = createRoot(document.getElementById("root")!);
root.render(<ChartExample />);
```

[Live example: Label Placement](https://www.ag-grid.com/charts/archive/14.3.0/reactFunctionalTs/axes-cross-lines/examples/label-placement/)

```js
{
    axes: {
        x: {
            type: 'time',
            crossLines: [
                {
                    type: 'line',
                    value: new Date(2025, 9, 1),
                    label: { text: 'Launch', placement: 'left-top' },
                },
            ],
        },
        y: {
            type: 'number',
            crossLines: [
                {
                    type: 'range',
                    range: [180, 210],
                    label: { text: 'Baseline', placement: 'inside-top-left' },
                },
            ],
        },
    },
}
```

In this example:

- Use the checkboxes to show a `line` and a `range` on each axis, and the dropdowns to change their placements. Each dropdown lists the placements that apply to that Cross Line.
- The first part of a placement names the edge the label sits against, and the second positions it along that edge. For example, `top-left` sits above the Cross Line aligned to its left, while `left-top` sits beside its left edge aligned to its top.
- Some placements apply to only one axis, such as `top-left` for a y-axis line and `left-top` for an x-axis line.
- `start` and `end` resolve to `left` and `right`, and are mirrored when [RTL Layout](https://www.ag-grid.com/charts/archive/14.3.0/react/rtl/) is enabled.
- Providing `placement` as an ordered array lets the label [fall back](https://www.ag-grid.com/charts/archive/14.3.0/react/series-labels/#placement) to the next placement when it collides or doesn't fit.

### Fitting Long Labels

There are a number of ways to handle long labels which do not fit within the series area or exceed a provided `maxWidth` or `maxHeight`.

#### Fitting Long Labels

```tsx
import React, { useState, Fragment } from "react";
import { createRoot } from "react-dom/client";
import { AgCharts } from "ag-charts-react";
import {
  AgCartesianChartOptions,
  CrossLinesModule,
  LineSeriesModule,
  ModuleRegistry,
  NumberAxisModule,
  TextWrap,
  TimeAxisModule,
} from "ag-charts-community";
import { getData } from "./data";
import clone from "clone";

ModuleRegistry.registerModules([
  CrossLinesModule,
  LineSeriesModule,
  NumberAxisModule,
  TimeAxisModule,
]);

const ChartExample = () => {
  const [options, setOptions] = useState<AgCartesianChartOptions>({
    data: getData(),
    title: {
      text: "Monthly Revenue",
    },
    series: [
      {
        type: "line",
        xKey: "month",
        yKey: "revenue",
        yName: "Revenue",
      },
    ],
    axes: {
      x: {
        type: "time",
        crossLines: [
          {
            type: "range",
            range: [new Date(2025, 5, 1), new Date(2025, 7, 1)],
            label: {
              text: "Summer Promotion: Reduced Pricing in All Stores",
              placement: "inside-top",
              maxWidth: 120,
              maxHeight: 60,
            },
          },
        ],
      },
      y: {
        type: "number",
        title: {
          text: "Revenue (£k)",
        },
        crossLines: [
          {
            type: "line",
            value: 250,
            label: {
              text: "Annual Revenue Target: £250k per Month",
              placement: "top-left",
              maxWidth: 120,
              maxHeight: 60,
            },
          },
        ],
      },
    },
  });

  const setMaxWidth = (event: Event) => {
    const nextOptions = clone(options);

    const value = Number((event.target as HTMLInputElement).value);
    document.getElementById("maxWidthValue")!.textContent = String(value);
    nextOptions.axes!.x!.crossLines![0].label!.maxWidth = value;
    nextOptions.axes!.y!.crossLines![0].label!.maxWidth = value;

    setOptions(nextOptions);
  };

  const setMaxHeight = (event: Event) => {
    const nextOptions = clone(options);

    const value = Number((event.target as HTMLInputElement).value);
    document.getElementById("maxHeightValue")!.textContent = String(value);
    nextOptions.axes!.x!.crossLines![0].label!.maxHeight = value;
    nextOptions.axes!.y!.crossLines![0].label!.maxHeight = value;

    setOptions(nextOptions);
  };

  const setWrapping = (value: string) => {
    const nextOptions = clone(options);

    nextOptions.axes!.x!.crossLines![0].label!.wrapping = value as TextWrap;
    nextOptions.axes!.y!.crossLines![0].label!.wrapping = value as TextWrap;

    setOptions(nextOptions);
  };

  const setMinimumFontSize = (event: Event) => {
    const nextOptions = clone(options);

    const value = Number((event.target as HTMLInputElement).value);
    document.getElementById("minimumFontSizeValue")!.textContent =
      String(value);
    nextOptions.axes!.x!.crossLines![0].label!.minimumFontSize = value;
    nextOptions.axes!.y!.crossLines![0].label!.minimumFontSize = value;

    setOptions(nextOptions);
  };

  const setTruncate = (value: string) => {
    const nextOptions = clone(options);

    nextOptions.axes!.x!.crossLines![0].label!.truncate = value === "enabled";
    nextOptions.axes!.y!.crossLines![0].label!.truncate = value === "enabled";

    setOptions(nextOptions);
  };

  return (
    <Fragment>
      <div className="example-controls">
        <div className="controls-row">
          <div className="gap-right">
            <label htmlFor="maxWidthSlider">Max Width:</label>
            <input
              type="range"
              id="maxWidthSlider"
              min="40"
              max="300"
              defaultValue="120"
              onInput={(event) => setMaxWidth(event)}
              onChange={(event) => setMaxWidth(event)}
            />
            <span
              id="maxWidthValue"
              style={{
                display: "inline-block",
                minWidth: "4ch",
                textAlign: "right",
              }}
            >
              120
            </span>
          </div>
          <div className="gap-right">
            <label htmlFor="maxHeightSlider">Max Height:</label>
            <input
              type="range"
              id="maxHeightSlider"
              min="10"
              max="100"
              defaultValue="60"
              onInput={(event) => setMaxHeight(event)}
              onChange={(event) => setMaxHeight(event)}
            />
            <span
              id="maxHeightValue"
              style={{
                display: "inline-block",
                minWidth: "4ch",
                textAlign: "right",
              }}
            >
              60
            </span>
          </div>
          <div>
            <label htmlFor="minimumFontSizeSlider">Minimum Font Size:</label>
            <input
              type="range"
              id="minimumFontSizeSlider"
              min="6"
              max="12"
              defaultValue="12"
              onInput={(event) => setMinimumFontSize(event)}
              onChange={(event) => setMinimumFontSize(event)}
            />
            <span
              id="minimumFontSizeValue"
              style={{
                display: "inline-block",
                minWidth: "3ch",
                textAlign: "right",
              }}
            >
              12
            </span>
          </div>
        </div>
        <div className="controls-row">
          <div className="gap-right">
            <label htmlFor="wrap-select">Wrapping:</label>
            <select
              id="wrap-select"
              onChange={(event) => setWrapping(event.target.value)}
            >
              <option value="on-space">on-space (default)</option>
              <option value="always">always</option>
              <option value="hyphenate">hyphenate</option>
              <option value="never">never</option>
            </select>
          </div>
          <div>
            <label htmlFor="truncate-select">Truncate:</label>
            <select
              id="truncate-select"
              onChange={(event) => setTruncate(event.target.value)}
            >
              <option value="enabled">Enabled (default)</option>
              <option value="disabled">Disabled</option>
            </select>
          </div>
        </div>
      </div>
      <AgCharts options={options} />
    </Fragment>
  );
};

const root = createRoot(document.getElementById("root")!);
root.render(<ChartExample />);
```

[Live example: Fitting Long Labels](https://www.ag-grid.com/charts/archive/14.3.0/reactFunctionalTs/axes-cross-lines/examples/label-fitting/)

```js
{
    crossLines: [
        {
            type: 'range',
            range: [new Date(2025, 5, 1), new Date(2025, 7, 1)],
            label: {
                text: 'Summer Promotion: Reduced Pricing in All Stores',
                placement: 'inside-top',
                maxWidth: 120,
                maxHeight: 60,
            },
        },
    ],
}
```

In this example:

- Use the controls to see how the labels wrap, shrink and truncate.
- A label that exceeds `maxWidth` or `maxHeight` or does not fit within the series area, wraps according to `wrapping`, shrinks towards `minimumFontSize`, then is truncated if `truncate` is enabled. See [Series Label Collision Avoidance](https://www.ag-grid.com/charts/archive/14.3.0/react/series-labels/#collision-avoidance) for details.

## Polar Axes Cross Lines

Cross Lines are also available for Polar Axes. They share the line and range options of Cartesian Cross Lines, but the label options differ by axis: radius axis labels are positioned with `positionAngle`, and angle axis labels support the common label options only.

> **Note**
>
> Polar Cross Lines are not included in `CrossLinesModule`. Register `PolarCrossLinesModule` separately when using [module imports](https://www.ag-grid.com/charts/archive/14.3.0/react/module-registry/).

#### Polar Axes Cross Lines

```tsx
import React, { useState } from "react";
import { createRoot } from "react-dom/client";
import { AgCharts } from "ag-charts-react";
import {
  AgChartOptions,
  AngleCategoryAxisModule,
  AnimationModule,
  ContextMenuModule,
  CrosshairModule,
  LegendModule,
  ModuleRegistry,
  PolarCrossLinesModule,
  RadarLineSeriesModule,
  RadiusNumberAxisModule,
} from "ag-charts-enterprise";
import { getData } from "./data";

ModuleRegistry.registerModules([
  AngleCategoryAxisModule,
  AnimationModule,
  CrosshairModule,
  PolarCrossLinesModule,
  LegendModule,
  RadarLineSeriesModule,
  RadiusNumberAxisModule,
  ContextMenuModule,
]);

const ChartExample = () => {
  const [options, setOptions] = useState<AgChartOptions>({
    data: getData(),
    title: {
      text: "Skill Analysis",
    },
    series: [
      {
        type: "radar-line",
        angleKey: "skill",
        radiusKey: "value",
      },
    ],
    axes: {
      angle: {
        type: "angle-category",
        shape: "circle",
        crossLines: [
          {
            type: "range",
            range: ["Technical Skills", "Communication"],
            label: {
              text: "Valuable Skills",
            },
          },
        ],
      },
      radius: {
        type: "radius-number",
        shape: "circle",
        crossLines: [
          {
            type: "line",
            value: 6,
            stroke: "red",
            label: {
              text: "Minimal\nRequirement",
              positionAngle: 180,
            },
          },
        ],
      },
    },
  });

  return <AgCharts options={options} />;
};

const root = createRoot(document.getElementById("root")!);
root.render(<ChartExample />);
```

[Live example: Polar Axes Cross Lines](https://www.ag-grid.com/charts/archive/14.3.0/reactFunctionalTs/axes-cross-lines/examples/polar-axes-crosslines-angle/)

```js
{
    axes: {
        angle: {
            type: 'angle-category',
            shape: 'circle',
            crossLines: [
                {
                    type: 'range',
                    range: ['Technical Skills', 'Communication'],
                    label: {
                        text: 'Valuable Skills',
                    },
                },
            ],
        },
        radius: {
            type: 'radius-number',
            shape: 'circle',
            crossLines: [
                {
                    type: 'line',
                    stroke: 'red',
                    value: 6,
                    label: {
                        text: 'Minimal\nRequirement',
                        positionAngle: 180,
                    },
                },
            ],
        },
    },
}
```

## Theming Cross Lines

[Theme overrides](https://www.ag-grid.com/charts/archive/14.3.0/react/themes/#overrides) style every Cross Line on an axis type. Add a `line` or `range` object to style only the Cross Lines of that type.

```js
{
    theme: {
        overrides: {
            common: {
                axes: {
                    number: {
                        crossLines: {
                            strokeWidth: 2,
                            line: { stroke: '#d62728', lineDash: [4, 4] },
                            range: { fill: '#7290C4', fillOpacity: 0.2 },
                        },
                    },
                },
            },
        },
    },
}
```

In this configuration:

- `strokeWidth` applies to every Cross Line.
- The `line` and `range` options take precedence over the options for every Cross Line, and options set on a Cross Line take precedence over both.

## API Reference

#### Cartesian Line

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| type (required) | 'line' |  | Renders the Cross Line as a single line positioned at `value`. |
| value (required) | AxisValue |  | The data value at which the line should be positioned. |
| id | string |  | A user-supplied identifier for the Cross Line, surfaced as `crossLineId` in callback and event params. Defaults to an internally generated identifier. |
| enabled | boolean |  | Whether to show the Cross Line. |
| stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour of the stroke for the lines. A colour string, or a theme-colour reference object. |
| strokeWidth | PixelSize |  | The width in pixels of the stroke for the lines. |
| strokeOpacity | Opacity |  | The opacity of the stroke for the lines. |
| lineDash | PixelSize[] |  | Defines how the line stroke is rendered. Every number in the array specifies the length in pixels of alternating dashes and gaps. For example, `[6, 3]` means dashes with a length of `6` pixels with gaps between of `3` pixels. |
| label | AgCartesianCrossLineLabelOptions |  | Configuration for the Cross Line label. |
| label.placement | AgCartesianCrossLineLabelPlacement \| AgCartesianCrossLineLabelPlacement[] | 'top' | Where to place the label. An array is tried in order, and the first placement that fits is used. |
| label.rotation | Degree |  | The rotation of the Cross Line label in degrees. |
| label.collision | AgChartLabelCollisionOptions |  | Configuration for how the Cross Line label behaves when it collides with other chart elements. |
| label.collision.threshold | PixelSize |  | Collision threshold in pixels. A positive value triggers avoidance strategies when labels are further away, a negative value allows labels to overlap without triggering avoidance. |
| label.collision.alwaysShow | boolean |  | Whether to keep a colliding label visible when a collision remains after every avoidance strategy has been applied. When `true` the label stays at the best available position; when `false` it is hidden instead. |
| label.text | string |  | The text to show in the label. |
| label.fontFamily | FontFamily \| GoogleFontFamily \| Array<FontFamily \| GoogleFontFamily> |  | The font family to use for the label. A single family name, or an array of names used as fallbacks. |
| label.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.color | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for text elements. A colour string, or a theme-colour reference object. |
| label.fontSize | FontSize |  | The size of the font in pixels for text elements. |
| label.lineHeight | PixelSize |  | The line height in pixels for text elements. Defaults to the natural line height of the font. |
| label.fontStyle | FontStyle |  | The style to use for text elements. |
| label.fontWeight | FontWeight |  | The font weight to use for text elements. |
| label.border | BorderOptions |  | Stroke options for the box border. |
| label.border.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.border.stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for the stroke. |
| label.border.strokeWidth | PixelSize |  | The width of the stroke in pixels. |
| label.border.strokeOpacity | Opacity |  | The opacity of the stroke colour. |
| label.cornerRadius | PixelSize |  | Apply rounded corners to the label box. |
| label.padding | PixelSize \| PaddingOptions |  | Distance between the label text and the border. A number applies uniform padding; an object sets each side. |
| label.fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor \| AgGradientColor \| AgPatternColor \| AgImageFill |  | The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill. |
| label.fillOpacity | Opacity |  | The opacity of the fill colour. |
| label.maxWidth | PixelSize |  | Maximum width, in pixels, the label may occupy before it is wrapped or truncated to fit. |
| label.maxHeight | PixelSize |  | Maximum height, in pixels, the label may occupy before it is wrapped or truncated to fit. |
| label.wrapping | 'never' \| 'always' \| 'hyphenate' \| 'on-space' |  | Text wrapping strategy applied when the label is constrained by `maxWidth` or `maxHeight`. - `'always'` will always wrap text to fit within the bounds. - `'hyphenate'` is similar to `'always'`, but inserts a hyphen (`-`) if forced to wrap in the middle of a word. - `'on-space'` will only wrap on white space: spaces, tabs and zero-width spaces (`\u200B`), never a non-breaking space (`\u00A0`). If there is no possibility to wrap a line on space and satisfy the bounds, the text will be truncated. - `'never'` disables text wrapping. |
| label.truncate | boolean |  | Whether to truncate the label with an ellipsis when it does not fit within its bounds. |
| label.minimumFontSize | FontSize |  | If the label does not fit within its bounds, setting this will allow the label to pick a font size between its normal `fontSize` and `minimumFontSize` to fit. The label is only truncated or hidden when it still does not fit at `minimumFontSize`. |
| listeners | AgCrossLineListeners |  | A map of event names to listeners. |
| listeners.click | Listener |  | The listener to call when the Cross Line is clicked. |
| listeners.doubleClick | Listener |  | The listener to call when the Cross Line is double-clicked. |

#### Cartesian Range

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| type (required) | 'range' |  | Renders the Cross Line as a shaded band spanning `range`. |
| range (required) | [AxisValue, AxisValue] |  | The `[start, end]` data values bounding the shaded region. |
| fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour to use for the fill of the range. A colour string, or a theme-colour reference object. |
| fillOpacity | Opacity |  | The opacity of the fill for the range. |
| id | string |  | A user-supplied identifier for the Cross Line, surfaced as `crossLineId` in callback and event params. Defaults to an internally generated identifier. |
| enabled | boolean |  | Whether to show the Cross Line. |
| stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour of the stroke for the lines. A colour string, or a theme-colour reference object. |
| strokeWidth | PixelSize |  | The width in pixels of the stroke for the lines. |
| strokeOpacity | Opacity |  | The opacity of the stroke for the lines. |
| lineDash | PixelSize[] |  | Defines how the line stroke is rendered. Every number in the array specifies the length in pixels of alternating dashes and gaps. For example, `[6, 3]` means dashes with a length of `6` pixels with gaps between of `3` pixels. |
| label | AgCartesianCrossLineLabelOptions |  | Configuration for the Cross Line label. |
| label.placement | AgCartesianCrossLineLabelPlacement \| AgCartesianCrossLineLabelPlacement[] | 'top' | Where to place the label. An array is tried in order, and the first placement that fits is used. |
| label.rotation | Degree |  | The rotation of the Cross Line label in degrees. |
| label.collision | AgChartLabelCollisionOptions |  | Configuration for how the Cross Line label behaves when it collides with other chart elements. |
| label.collision.threshold | PixelSize |  | Collision threshold in pixels. A positive value triggers avoidance strategies when labels are further away, a negative value allows labels to overlap without triggering avoidance. |
| label.collision.alwaysShow | boolean |  | Whether to keep a colliding label visible when a collision remains after every avoidance strategy has been applied. When `true` the label stays at the best available position; when `false` it is hidden instead. |
| label.text | string |  | The text to show in the label. |
| label.fontFamily | FontFamily \| GoogleFontFamily \| Array<FontFamily \| GoogleFontFamily> |  | The font family to use for the label. A single family name, or an array of names used as fallbacks. |
| label.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.color | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for text elements. A colour string, or a theme-colour reference object. |
| label.fontSize | FontSize |  | The size of the font in pixels for text elements. |
| label.lineHeight | PixelSize |  | The line height in pixels for text elements. Defaults to the natural line height of the font. |
| label.fontStyle | FontStyle |  | The style to use for text elements. |
| label.fontWeight | FontWeight |  | The font weight to use for text elements. |
| label.border | BorderOptions |  | Stroke options for the box border. |
| label.border.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.border.stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for the stroke. |
| label.border.strokeWidth | PixelSize |  | The width of the stroke in pixels. |
| label.border.strokeOpacity | Opacity |  | The opacity of the stroke colour. |
| label.cornerRadius | PixelSize |  | Apply rounded corners to the label box. |
| label.padding | PixelSize \| PaddingOptions |  | Distance between the label text and the border. A number applies uniform padding; an object sets each side. |
| label.fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor \| AgGradientColor \| AgPatternColor \| AgImageFill |  | The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill. |
| label.fillOpacity | Opacity |  | The opacity of the fill colour. |
| label.maxWidth | PixelSize |  | Maximum width, in pixels, the label may occupy before it is wrapped or truncated to fit. |
| label.maxHeight | PixelSize |  | Maximum height, in pixels, the label may occupy before it is wrapped or truncated to fit. |
| label.wrapping | 'never' \| 'always' \| 'hyphenate' \| 'on-space' |  | Text wrapping strategy applied when the label is constrained by `maxWidth` or `maxHeight`. - `'always'` will always wrap text to fit within the bounds. - `'hyphenate'` is similar to `'always'`, but inserts a hyphen (`-`) if forced to wrap in the middle of a word. - `'on-space'` will only wrap on white space: spaces, tabs and zero-width spaces (`\u200B`), never a non-breaking space (`\u00A0`). If there is no possibility to wrap a line on space and satisfy the bounds, the text will be truncated. - `'never'` disables text wrapping. |
| label.truncate | boolean |  | Whether to truncate the label with an ellipsis when it does not fit within its bounds. |
| label.minimumFontSize | FontSize |  | If the label does not fit within its bounds, setting this will allow the label to pick a font size between its normal `fontSize` and `minimumFontSize` to fit. The label is only truncated or hidden when it still does not fit at `minimumFontSize`. |
| listeners | AgCrossLineListeners |  | A map of event names to listeners. |
| listeners.click | Listener |  | The listener to call when the Cross Line is clicked. |
| listeners.doubleClick | Listener |  | The listener to call when the Cross Line is double-clicked. |

#### Angle Line

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| type (required) | 'line' |  | Renders the Cross Line as a single line positioned at `value`. |
| value (required) | AxisValue |  | The data value at which the line should be positioned. |
| id | string |  | A user-supplied identifier for the Cross Line, surfaced as `crossLineId` in callback and event params. Defaults to an internally generated identifier. |
| enabled | boolean |  | Whether to show the Cross Line. |
| stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour of the stroke for the lines. A colour string, or a theme-colour reference object. |
| strokeWidth | PixelSize |  | The width in pixels of the stroke for the lines. |
| strokeOpacity | Opacity |  | The opacity of the stroke for the lines. |
| lineDash | PixelSize[] |  | Defines how the line stroke is rendered. Every number in the array specifies the length in pixels of alternating dashes and gaps. For example, `[6, 3]` means dashes with a length of `6` pixels with gaps between of `3` pixels. |
| label | AgBaseCrossLineLabelOptions |  | Configuration for the Cross Line label. |
| label.text | string |  | The text to show in the label. |
| label.fontFamily | FontFamily \| GoogleFontFamily \| Array<FontFamily \| GoogleFontFamily> |  | The font family to use for the label. A single family name, or an array of names used as fallbacks. |
| label.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.color | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for text elements. A colour string, or a theme-colour reference object. |
| label.fontSize | FontSize |  | The size of the font in pixels for text elements. |
| label.lineHeight | PixelSize |  | The line height in pixels for text elements. Defaults to the natural line height of the font. |
| label.fontStyle | FontStyle |  | The style to use for text elements. |
| label.fontWeight | FontWeight |  | The font weight to use for text elements. |
| label.border | BorderOptions |  | Stroke options for the box border. |
| label.border.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.border.stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for the stroke. |
| label.border.strokeWidth | PixelSize |  | The width of the stroke in pixels. |
| label.border.strokeOpacity | Opacity |  | The opacity of the stroke colour. |
| label.cornerRadius | PixelSize |  | Apply rounded corners to the label box. |
| label.padding | PixelSize \| PaddingOptions |  | Distance between the label text and the border. A number applies uniform padding; an object sets each side. |
| label.fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor \| AgGradientColor \| AgPatternColor \| AgImageFill |  | The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill. |
| label.fillOpacity | Opacity |  | The opacity of the fill colour. |
| listeners | AgCrossLineListeners |  | A map of event names to listeners. |
| listeners.click | Listener |  | The listener to call when the Cross Line is clicked. |
| listeners.doubleClick | Listener |  | The listener to call when the Cross Line is double-clicked. |

#### Angle Range

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| type (required) | 'range' |  | Renders the Cross Line as a shaded band spanning `range`. |
| range (required) | [AxisValue, AxisValue] |  | The `[start, end]` data values bounding the shaded region. |
| fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour to use for the fill of the range. A colour string, or a theme-colour reference object. |
| fillOpacity | Opacity |  | The opacity of the fill for the range. |
| id | string |  | A user-supplied identifier for the Cross Line, surfaced as `crossLineId` in callback and event params. Defaults to an internally generated identifier. |
| enabled | boolean |  | Whether to show the Cross Line. |
| stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour of the stroke for the lines. A colour string, or a theme-colour reference object. |
| strokeWidth | PixelSize |  | The width in pixels of the stroke for the lines. |
| strokeOpacity | Opacity |  | The opacity of the stroke for the lines. |
| lineDash | PixelSize[] |  | Defines how the line stroke is rendered. Every number in the array specifies the length in pixels of alternating dashes and gaps. For example, `[6, 3]` means dashes with a length of `6` pixels with gaps between of `3` pixels. |
| label | AgBaseCrossLineLabelOptions |  | Configuration for the Cross Line label. |
| label.text | string |  | The text to show in the label. |
| label.fontFamily | FontFamily \| GoogleFontFamily \| Array<FontFamily \| GoogleFontFamily> |  | The font family to use for the label. A single family name, or an array of names used as fallbacks. |
| label.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.color | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for text elements. A colour string, or a theme-colour reference object. |
| label.fontSize | FontSize |  | The size of the font in pixels for text elements. |
| label.lineHeight | PixelSize |  | The line height in pixels for text elements. Defaults to the natural line height of the font. |
| label.fontStyle | FontStyle |  | The style to use for text elements. |
| label.fontWeight | FontWeight |  | The font weight to use for text elements. |
| label.border | BorderOptions |  | Stroke options for the box border. |
| label.border.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.border.stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for the stroke. |
| label.border.strokeWidth | PixelSize |  | The width of the stroke in pixels. |
| label.border.strokeOpacity | Opacity |  | The opacity of the stroke colour. |
| label.cornerRadius | PixelSize |  | Apply rounded corners to the label box. |
| label.padding | PixelSize \| PaddingOptions |  | Distance between the label text and the border. A number applies uniform padding; an object sets each side. |
| label.fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor \| AgGradientColor \| AgPatternColor \| AgImageFill |  | The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill. |
| label.fillOpacity | Opacity |  | The opacity of the fill colour. |
| listeners | AgCrossLineListeners |  | A map of event names to listeners. |
| listeners.click | Listener |  | The listener to call when the Cross Line is clicked. |
| listeners.doubleClick | Listener |  | The listener to call when the Cross Line is double-clicked. |

#### Radius Line

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| type (required) | 'line' |  | Renders the Cross Line as a single line positioned at `value`. |
| value (required) | AxisValue |  | The data value at which the line should be positioned. |
| id | string |  | A user-supplied identifier for the Cross Line, surfaced as `crossLineId` in callback and event params. Defaults to an internally generated identifier. |
| enabled | boolean |  | Whether to show the Cross Line. |
| stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour of the stroke for the lines. A colour string, or a theme-colour reference object. |
| strokeWidth | PixelSize |  | The width in pixels of the stroke for the lines. |
| strokeOpacity | Opacity |  | The opacity of the stroke for the lines. |
| lineDash | PixelSize[] |  | Defines how the line stroke is rendered. Every number in the array specifies the length in pixels of alternating dashes and gaps. For example, `[6, 3]` means dashes with a length of `6` pixels with gaps between of `3` pixels. |
| label | AgRadiusCrossLineLabelOptions |  | Configuration for the Cross Line label. |
| label.positionAngle | Degree |  | The angle in degrees around the centre of the polar chart at which the Cross Line label is positioned. |
| label.text | string |  | The text to show in the label. |
| label.fontFamily | FontFamily \| GoogleFontFamily \| Array<FontFamily \| GoogleFontFamily> |  | The font family to use for the label. A single family name, or an array of names used as fallbacks. |
| label.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.color | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for text elements. A colour string, or a theme-colour reference object. |
| label.fontSize | FontSize |  | The size of the font in pixels for text elements. |
| label.lineHeight | PixelSize |  | The line height in pixels for text elements. Defaults to the natural line height of the font. |
| label.fontStyle | FontStyle |  | The style to use for text elements. |
| label.fontWeight | FontWeight |  | The font weight to use for text elements. |
| label.border | BorderOptions |  | Stroke options for the box border. |
| label.border.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.border.stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for the stroke. |
| label.border.strokeWidth | PixelSize |  | The width of the stroke in pixels. |
| label.border.strokeOpacity | Opacity |  | The opacity of the stroke colour. |
| label.cornerRadius | PixelSize |  | Apply rounded corners to the label box. |
| label.padding | PixelSize \| PaddingOptions |  | Distance between the label text and the border. A number applies uniform padding; an object sets each side. |
| label.fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor \| AgGradientColor \| AgPatternColor \| AgImageFill |  | The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill. |
| label.fillOpacity | Opacity |  | The opacity of the fill colour. |
| listeners | AgCrossLineListeners |  | A map of event names to listeners. |
| listeners.click | Listener |  | The listener to call when the Cross Line is clicked. |
| listeners.doubleClick | Listener |  | The listener to call when the Cross Line is double-clicked. |

#### Radius Range

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| type (required) | 'range' |  | Renders the Cross Line as a shaded band spanning `range`. |
| range (required) | [AxisValue, AxisValue] |  | The `[start, end]` data values bounding the shaded region. |
| fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour to use for the fill of the range. A colour string, or a theme-colour reference object. |
| fillOpacity | Opacity |  | The opacity of the fill for the range. |
| id | string |  | A user-supplied identifier for the Cross Line, surfaced as `crossLineId` in callback and event params. Defaults to an internally generated identifier. |
| enabled | boolean |  | Whether to show the Cross Line. |
| stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour of the stroke for the lines. A colour string, or a theme-colour reference object. |
| strokeWidth | PixelSize |  | The width in pixels of the stroke for the lines. |
| strokeOpacity | Opacity |  | The opacity of the stroke for the lines. |
| lineDash | PixelSize[] |  | Defines how the line stroke is rendered. Every number in the array specifies the length in pixels of alternating dashes and gaps. For example, `[6, 3]` means dashes with a length of `6` pixels with gaps between of `3` pixels. |
| label | AgRadiusCrossLineLabelOptions |  | Configuration for the Cross Line label. |
| label.positionAngle | Degree |  | The angle in degrees around the centre of the polar chart at which the Cross Line label is positioned. |
| label.text | string |  | The text to show in the label. |
| label.fontFamily | FontFamily \| GoogleFontFamily \| Array<FontFamily \| GoogleFontFamily> |  | The font family to use for the label. A single family name, or an array of names used as fallbacks. |
| label.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.color | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for text elements. A colour string, or a theme-colour reference object. |
| label.fontSize | FontSize |  | The size of the font in pixels for text elements. |
| label.lineHeight | PixelSize |  | The line height in pixels for text elements. Defaults to the natural line height of the font. |
| label.fontStyle | FontStyle |  | The style to use for text elements. |
| label.fontWeight | FontWeight |  | The font weight to use for text elements. |
| label.border | BorderOptions |  | Stroke options for the box border. |
| label.border.enabled | boolean |  | Whether the associated elements and properties should be used in the chart. |
| label.border.stroke | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor |  | The colour for the stroke. |
| label.border.strokeWidth | PixelSize |  | The width of the stroke in pixels. |
| label.border.strokeOpacity | Opacity |  | The opacity of the stroke colour. |
| label.cornerRadius | PixelSize |  | Apply rounded corners to the label box. |
| label.padding | PixelSize \| PaddingOptions |  | Distance between the label text and the border. A number applies uniform padding; an object sets each side. |
| label.fill | CssColor \| AgColorRef \| AgColorRefMixOnto \| AgColorRefMixOntoColor \| AgGradientColor \| AgPatternColor \| AgImageFill |  | The colour for filling shapes. A colour string, or an object for a gradient, pattern, or image fill. |
| label.fillOpacity | Opacity |  | The opacity of the fill colour. |
| listeners | AgCrossLineListeners |  | A map of event names to listeners. |
| listeners.click | Listener |  | The listener to call when the Cross Line is clicked. |
| listeners.doubleClick | Listener |  | The listener to call when the Cross Line is double-clicked. |
