---
title: "Aspect Bars (Gantt)"
method: POST
path: "/aspect-bar"
tags: ["Aspects & Points"]
---

# Aspect Bars (Gantt)

`POST /aspect-bar`

Transform aspect timelines into Gantt-style bars grouped by transit planet. Each bar shows the duration an aspect is in orb, with exact dates marked. Useful for visual transit calendars.

## Request body

- AspectBar
  - `startDate` string, required
  - `endDate` string, required
  - `stepDays` number, nullable
  - `planet1Ids` number[]
  - `planet2Ids` number[]
  - `aspectAngles` number[]
  - `maxOrb` number, nullable
  - `visiblePlanetIds` number[]

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `rows` number, nullable
    - `bars` object, nullable
      - `rows` object[], nullable
        - `planetId` number, nullable
        - `bars` object[], nullable
          - `transitPlanetId` number, nullable
          - `targetPlanetId` number, nullable
          - `nature` string, nullable
          - `startJd` number, nullable
          - `endJd` number, nullable
        - `maxLanes` number, nullable
      - `timeRange` object, nullable
        - `start` string, nullable
        - `end` string, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/529d7d36d7d6/schema)
