SubframeApp

Area Chart

Component 29

About

Here is Area Chart component

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

Code

How Area Chart is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Component from "@/components/ui/area-chart";

export default function DemoFour() {
  return (
    <Component
      className="max-w-3xl h-56"
      dark={false}
      stacked={false}
      index="Hour"
      categories={["Active Users"]}
      data={[
        { Hour: "09:00", "Active Users": 42 },
        { Hour: "10:00", "Active Users": 58 },
        { Hour: "11:00", "Active Users": 61 },
        { Hour: "12:00", "Active Users": 45 },
        { Hour: "13:00", "Active Users": 70 },
        { Hour: "14:00", "Active Users": 76 },
        { Hour: "15:00", "Active Users": 68 },
        { Hour: "16:00", "Active Users": 80 },
      ]}
      colors={["#0b544a"]}
    />
  );
}

Dependencies

More by SubframeApp

View all
  • Checkbox

    Checkbox

    16
  • Checkbox Card

    Checkbox Card

    14
  • Breadcrumb

    Breadcrumb

    12
  • Calendar

    Calendar

    6
  • Context Menu

    Context Menu

    4
  • Checkbox Group

    Checkbox Group

    3
  • Accordion

    Accordion

    3
  • Avatar

    Avatar

    2