Template
Area chart widget for MCP Apps
Show a trend the way people expect to see one. The line draws itself in, the area fades in under it, and the header says where the series ends and how much it moved.
How have active users moved week by week? I need it for Monday's update.
Used show_area_chart
The house design: black outline, butter yellow and a marker swipe under the title.
The data it takes
| Field | Type | What it is |
|---|---|---|
| titlerequired | string | |
| subtitle | string | |
| unit | string | |
| pointsrequired | object[] | |
| └ labelrequired | string | |
| └ valuerequired | number |
Sample data
{
"title": "Active users",
"subtitle": "Per week",
"points": [
{
"label": "W1",
"value": 1240
},
{
"label": "W2",
"value": 1385
},
{
"label": "W3",
"value": 1310
},
{
"label": "W4",
"value": 1620
},
{
"label": "W5",
"value": 1795
},
{
"label": "W6",
"value": 1710
},
{
"label": "W7",
"value": 2040
},
{
"label": "W8",
"value": 2315
}
]
}The tool that shows it
A widget made from this template is shown by one tool. The model reads its description to decide when to call it and fills the input schema with the data. This is the definition Widgetry exports:
{
"name": "show_area_chart",
"title": "Area chart",
"description": "Shows how one value evolves over time as a smooth area chart, with the latest value and its change against the first point. Use it for trends such as revenue, users or traffic per day, week or month.",
"inputSchema": {
"type": "object",
"required": [
"title",
"points"
],
"properties": {
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"unit": {
"type": "string"
},
"points": {
"type": "array",
"minItems": 2,
"items": {
"type": "object",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "number"
}
}
}
}
}
}
}More templates
- BoardColumns of cards with labels, dates and people. Like a Trello board.
- Aurora cardA featured announcement with a headline, a figure and a button, dressed differently by each design.
- 3D globeA WebGL globe with three.js that spins on its own and can be dragged, with a dot per place.
- WeatherThe weather for a place with animated SVG icons and the coming hours; each design paints its own sky.
- Progress ringsGoals as SVG rings that fill up as they appear, with their percentage.
- 3D carouselCards on a ring that spins in 3D with CSS perspective. Pauses on hover.
- CountdownDays, hours, minutes and seconds to an event, ticking live with a little jump.
- MilestonesFigures that count up from zero and cascade in, animated with GSAP.
- DonutParts of a whole with Chart.js: animates in and responds to the mouse.
- MetricsA row of key figures with their change against the previous period.
- Bar chartHorizontal bars with their values, in the order they arrive.
- TableRows and columns with a sticky header; the caller decides the columns.