> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# BarSpacingType

## Definition

Indicates the type of bar spacing used for the primary [Bars](/developer/desktop-sdk/references/common/bars) object on the chart.

## Property Value

An enum representing one of the values below:

| Property          | Description                                                                                  |
| ----------------- | -------------------------------------------------------------------------------------------- |
| EquidistantSingle | Indicates Equidistant Bar Spacing is used, and only one Bars object exists on the chart      |
| EquidistantMulti  | Indicates Equidistant Bar Spacing is used, and more than one Bars objects exist on the chart |
| TimeBased         | Indicates Time-Based bar spacing is used                                                     |

## Syntax

`chartcontrol.BarSpacingType`

## Example

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
   // Print the type of bar spacing used on the chart
   Print(chartControl.BarSpacingType);
}
```

Based on the image below, BarSpacingType confirms that there are multiple Bars objects configured on the chart, and that the chart is set to Equidistant Bar Spacing:

![ChartControl\_BarSpacingType](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/8a4dd38ca9caf46d199dff1e7249fb09965910711e47c94aa35028ea084be3e4/docs/assets/developer/desktop-sdk/references/barspacingtype-chartcontrol-barspacingtype.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070400Z&X-Amz-Expires=604800&X-Amz-Signature=e9800c805fb1346be8430781cfb510ff72bce3fb8c680e71c877e8bbbc190ed6&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)