---
title: Get Chart Raw SVG
description: Get minimal raw SVG chart output
url: https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-raw-svg
markdown_url: https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-raw-svg.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Retrieve a minimal SVG chart, suitable for custom post-processing or styling. Uses the same input type as `getChartSvg`.

## Get Chart Raw SVG - Query Structure

```graphql
query GetChartRawSvg($input: GetChartSvgInput!) {
  getChartRawSvg(input: $input) {
    svg
  }
}
```

## Variables

Same as [`getChartSvg`](https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-svg) -- takes `GetChartSvgInput`:

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `term_id` | `String` | Yes | Term ID to query |
| `curve_id` | `String` | Yes | Curve ID (bonding curve) |
| `interval` | `String` | Yes | Time interval |
| `start_time` | `String` | Yes | Start of time range (ISO 8601) |
| `end_time` | `String` | Yes | End of time range (ISO 8601) |
| `graph_type` | `String` | No | Type of graph data |
| `width` | `Int` | No | Chart width in pixels |
| `height` | `Int` | No | Chart height in pixels |
| `background_color` | `String` | No | Background color |
| `line_color` | `String` | No | Line color |

```json
{
  "input": {
    "term_id": "0x906527aae4af914b1ac01ff9adfdda5dafde3b5e21f84045e0660b0a15c07769",
    "curve_id": "1",
    "interval": "1d",
    "start_time": "2024-01-01T00:00:00Z",
    "end_time": "2024-01-31T23:59:59Z",
    "width": 800,
    "height": 400
  }
}
```

## Response Fields (`ChartSvgOutput`)

| Field | Type | Description |
|-------|------|-------------|
| `svg` | `String!` | Minimal SVG markup string |

## Related

- [Chart SVG](https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-svg) - Fully styled SVG charts
- [Chart JSON](https://docs.intuition.systems/docs/v1/graphql-api/queries/charts/chart-json) - JSON data for custom rendering
