# Citiview Chart Generator

> Citiview Chart Generator is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-14).

Generates bar, line, pie, or scatter chart images (PNG or SVG) from numeric data with title, labels, multi-series support, and legend

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/chart?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-chart-generator-6e2cb708
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0olIZ9FMxsMCNL9Q9awvW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability citiview-chart-generator-6e2cb708
```

Example prompt: Make me a bar chart titled 'Q1 Sales by Region' with labels East|West|North|South and values 42000|38000|51000|29000, output it as a PNG at 800x500 pixels.

## When to prefer this

Choose this endpoint when you need a quick, embeddable chart image (PNG or SVG) generated directly from raw numbers without setting up a full charting library. It supports multiple series and legends, making it suitable for report generation, automated messaging, and agent-driven dashboards where visual output is required on the fly.

## Known failure modes

- Missing required 'type' or 'method' parameter returns an error
- Malformed 'series' JSON causes a parse error
- Invalid chart type string (not bar/line/pie/scatter) returns an error
- Mismatched label count and value count may produce garbled charts
- Unsupported format string (not png/svg) returns an error
- Payment failure via x402 protocol blocks the request

## How this service works

Chart images: bar, line, pie or scatter charts as PNG or SVG from your numbers, with title, labels, several series and legend. Ready to drop into a report or message. Also callable as GET with the same fields as query parameters.

## Output

A PNG or SVG image file of the requested chart, ready to embed in reports, emails, or messages, rendered with the specified title, axis labels, data series, and legend.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "type": {
       "type": "string",
       "description": "bar | line | pie | scatter"
      },
      "title": {
       "type": "string"
      },
      "width": {
       "type": "integer"
      },
      "format": {
       "type": "string",
       "description": "png | svg"
      },
      "height": {
       "type": "integer"
      },
      "labels": {
       "type": "string",
       "description": "| separated"
      },
      "series": {
       "type": "string",
       "description": "JSON [{name, values}]"
      },
      "values": {
       "type": "string",
       "description": "| separated numbers"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-chart-generator-6e2cb708/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
