Line chart
A borderless line chart with soft area fills, a hover tooltip, range tabs and a legend. Dependency-free SVG.
Display modes: inline, borderless · Source: MCP Apps for Claude kit · Inline card / Borderless card
Can you take care of this?
Here's what I found:
App
Chats and messages
MessagesChats
Inline height 0px fits
Borderless: set _meta.ui.prefersBorder = false
Tooltip on hover, no popovers
Fits inline without scrolling
#Installation
To get started, add the component to your project via the shadcn CLI:
$npx shadcn@latest add https://mcpblocks.dev/r/line-chart.jsonThis also installs host-tokens, adding Claude's CSS variables and utilities like bg-host-bg to your stylesheet.
#Basic example
import { LineChart } from "@/components/line-chart"
<LineChart
title="Chats and messages"
labels={days}
series={[
{ name: "Messages", values: messages },
{ name: "Chats", values: chats },
]}
ranges={["1D", "1W", "1M", "1Y"]}
onRangeChange={(r) => app.callServerTool({ name: "get_usage", arguments: { range: r } })}
/>#Component API
| Prop | Type | Description |
|---|---|---|
| labels | string[] | One label per point; also shown in the tooltip. |
| series | { name, values[], color? }[] | Up to ~4 series. |
| ranges / range / onRangeChange | string[] / string / fn | Optional range tabs. |
| formatValue | (v) => string | Axis and tooltip formatting. |