gpt-vis

GPT-Vis

AI chats 10

About

A React chart component that renders AI/LLM-generated data visualizations from vis-syntax strings or config objects, supporting 26 chart types via @antv/gpt-vis.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds GPT-Vis to your project and fits it to your theme.

Code

How GPT-Vis is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { GPTVis } from "@/components/ui/gpt-vis";

export default function Default() {
  const visSyntax = `vis line
data
  - time 2020
    value 100
  - time 2021
    value 120
  - time 2022
    value 150
  - time 2023
    value 180
title Sales Trend`;

  return (
    <div className="inline-block bg-background p-4 text-foreground">
      <GPTVis
        content={visSyntax}
        theme="academy"
        width={600}
        height={400}
        className="w-auto min-h-0"
      />
    </div>
  );
}

Dependencies

More by gpt-vis

View all
  • Funnel Chart

    Funnel Chart

    32
  • Column Chart

    Column Chart

  • Pie Chart

    Pie Chart

More in AI chats

View all
  • AI Actions

    AI Actions

    354
  • AI Artifact

    AI Artifact

    14
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    21
  • Aquarium Prompt

    Aquarium Prompt

    118
  • AI Orb

    AI Orb

    192
  • Color Picker

    Color Picker

    207
  • AI Response

    AI Response

    15