{
  "x402Version": 2,
  "id": 41615,
  "slug": "41615",
  "resource": "https://svg-bar-chart-renderer.jannioura.workers.dev/",
  "description": "Deterministic, paid-per-render SVG bar chart generator for LLM agents. Accepts labeled scalar data and layout options, performs exact geometry math (min/max normalization, nice-interval y-axis ticks, label spacing, bar-width distribution), and returns schema-valid, escape-correct SVG with identical input always yielding byte-identical output.",
  "type": "http",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x86256e25d4e5511eb6dcc474a4e779970267e903",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "15000",
      "amountUsd": 0.015,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "byteLength": {
            "description": "UTF-8 byte length of the svg string.",
            "type": "integer"
          },
          "pointCount": {
            "type": "integer"
          },
          "svg": {
            "description": "Complete, well-formed SVG document.",
            "type": "string"
          },
          "yAxis": {
            "properties": {
              "max": {
                "type": "number"
              },
              "min": {
                "type": "number"
              },
              "ticks": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              }
            },
            "required": [
              "min",
              "max",
              "ticks"
            ],
            "type": "object"
          }
        },
        "required": [
          "svg",
          "byteLength",
          "yAxis",
          "pointCount"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "data": [
              {
                "label": "Q1",
                "value": 12
              },
              {
                "label": "Q2",
                "value": 19
              },
              {
                "label": "Q3",
                "value": 7
              }
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "byteLength": 1877,
            "pointCount": 3,
            "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"640\" height=\"400\" viewBox=\"0 0 640 400\" role=\"img\" aria-label=\"Bar chart\"><rect x=\"0\" y=\"0\" width=\"640\" height=\"4...",
            "yAxis": {
              "max": 20,
              "min": 0,
              "ticks": [
                0,
                5,
                10,
                15,
                20
              ]
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "data": {
                    "items": {
                      "properties": {
                        "label": {
                          "type": "string"
                        },
                        "value": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "label",
                        "value"
                      ],
                      "type": "object"
                    },
                    "maxItems": 500,
                    "minItems": 1,
                    "type": "array"
                  },
                  "options": {
                    "properties": {
                      "fill": {
                        "default": "#4f46e5",
                        "pattern": "^#[0-9a-fA-F]{6}$",
                        "type": "string"
                      },
                      "height": {
                        "default": 400,
                        "maximum": 4000,
                        "minimum": 100,
                        "type": "integer"
                      },
                      "showGrid": {
                        "default": true,
                        "type": "boolean"
                      },
                      "theme": {
                        "default": "light",
                        "enum": [
                          "light",
                          "dark"
                        ],
                        "type": "string"
                      },
                      "title": {
                        "default": "",
                        "type": "string"
                      },
                      "width": {
                        "default": 640,
                        "maximum": 4000,
                        "minimum": 100,
                        "type": "integer"
                      },
                      "yAxisLabel": {
                        "default": "",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "data"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "byteLength": {
                    "description": "UTF-8 byte length of the svg string.",
                    "type": "integer"
                  },
                  "pointCount": {
                    "type": "integer"
                  },
                  "svg": {
                    "description": "Complete, well-formed SVG document.",
                    "type": "string"
                  },
                  "yAxis": {
                    "properties": {
                      "max": {
                        "type": "number"
                      },
                      "min": {
                        "type": "number"
                      },
                      "ticks": {
                        "items": {
                          "type": "number"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "min",
                      "max",
                      "ticks"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "svg",
                  "byteLength",
                  "yAxis",
                  "pointCount"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_lfdx963d"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "svg-bar-chart-renderer.jannioura.workers.dev",
  "lastUpdated": "2026-09-24T18:05:48.917Z",
  "quality": {
    "calls30d": 7,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-24T18:05:48.672Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "data": [
                {
                  "label": "Q1",
                  "value": 12
                },
                {
                  "label": "Q2",
                  "value": 19
                },
                {
                  "label": "Q3",
                  "value": 7
                }
              ]
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "byteLength": 1877,
              "pointCount": 3,
              "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"640\" height=\"400\" viewBox=\"0 0 640 400\" role=\"img\" aria-label=\"Bar chart\"><rect x=\"0\" y=\"0\" width=\"640\" height=\"4...",
              "yAxis": {
                "max": 20,
                "min": 0,
                "ticks": [
                  0,
                  5,
                  10,
                  15,
                  20
                ]
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "data": {
                      "items": {
                        "properties": {
                          "label": {
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "label",
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 500,
                      "minItems": 1,
                      "type": "array"
                    },
                    "options": {
                      "properties": {
                        "fill": {
                          "default": "#4f46e5",
                          "pattern": "^#[0-9a-fA-F]{6}$",
                          "type": "string"
                        },
                        "height": {
                          "default": 400,
                          "maximum": 4000,
                          "minimum": 100,
                          "type": "integer"
                        },
                        "showGrid": {
                          "default": true,
                          "type": "boolean"
                        },
                        "theme": {
                          "default": "light",
                          "enum": [
                            "light",
                            "dark"
                          ],
                          "type": "string"
                        },
                        "title": {
                          "default": "",
                          "type": "string"
                        },
                        "width": {
                          "default": 640,
                          "maximum": 4000,
                          "minimum": 100,
                          "type": "integer"
                        },
                        "yAxisLabel": {
                          "default": "",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "byteLength": {
                      "description": "UTF-8 byte length of the svg string.",
                      "type": "integer"
                    },
                    "pointCount": {
                      "type": "integer"
                    },
                    "svg": {
                      "description": "Complete, well-formed SVG document.",
                      "type": "string"
                    },
                    "yAxis": {
                      "properties": {
                        "max": {
                          "type": "number"
                        },
                        "min": {
                          "type": "number"
                        },
                        "ticks": {
                          "items": {
                            "type": "number"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "min",
                        "max",
                        "ticks"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "svg",
                    "byteLength",
                    "yAxis",
                    "pointCount"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_lfdx963d"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "type": "array"
            },
            "w": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "svg-bar-chart-renderer.jannioura.workers.dev",
    "manifest_name": "svg-bar-chart-renderer.jannioura.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "byteLength": 0,
      "pointCount": 0,
      "svg": "string",
      "yAxis": {
        "max": 0,
        "min": 0,
        "ticks": [
          0
        ]
      }
    },
    "type": "string"
  }
}