Appbricx
Features

Build

  • Coding agents and MCP
  • Verify testing
  • Builder console

Data

  • Postgres database
  • Data API
  • Realtime

Users

  • Row-level security
  • Sign-in and auth
  • Payments

Logic

  • Workflows and jobs
  • AI in your app
  • Integrations

Ship and own

  • Backups and rollback
  • Hosting and domains
  • Self-host and export
All features
ShowcaseTemplatesPricingDocs
Log inStart free
  • Features
  • Showcase
  • Templates
  • Pricing
  • Docs
  • Log in

Build

  • Coding agents and MCP
  • Verify testing
  • Builder console

Data

  • Postgres database
  • Data API
  • Realtime

Users

  • Row-level security
  • Sign-in and auth
  • Payments

Logic

  • Workflows and jobs
  • AI in your app
  • Integrations

Ship and own

  • Backups and rollback
  • Hosting and domains
  • Self-host and export
  1. Home
  2. Templates
  3. Trend chart

Component · UI components

Trend chart

A custom component you can drop on any page: it counts the rows of one table per day over the last 7 to 90 days and draws them as bars in your app's colours, with the percentage change between the first and second half of the window. The template adds it with a Trends page for the role you choose; place it on other pages with a custom node.

Use in AppbricxFree. Already have an account? Log in
View the files

use_template { slug: "trend-chart" } adds

Components
TrendChart
Pages
/trends

What it adds to your app

Component TrendChart (props: title, entity, dateField, days). A Trends page.

Pages

  • /trends Trends (‹page_role›)

Components

  • TrendChart A bar chart of how many rows of a table were added each day, with the change against the period before

Where it attaches

Params point the template at your own tables and roles. Leave out the ones with defaults; a wrong one is refused with the options your app has.

ParamWhat it isExample
entityThe table whose new rows the chart counts.order
page_roleThe role the Trends page is for. Optional.staff

Use with your coding agent

  1. Connect the Appbricx MCP server to Claude Code, Cursor or any MCP client (quickstart).
  2. Paste the prompt. The agent reads the template, previews the merge with dry_run and shows you the diff.
  3. It applies to dev. Check it, then deploy when you are happy.
Prompt
Add the Trend chart template (slug "trend-chart") to my Appbricx project. Read it with get_template, run use_template with dry_run first and show me the diff, then apply it. Ask me where it attaches if you can't tell from my contract (entity: table to chart; page_role: who sees the trends page).
MCP call
{
  "tool": "use_template",
  "arguments": {
    "slug": "trend-chart",
    "project_id": "<your project id>",
    "params": {
      "entity": "order",
      "page_role": "staff"
    },
    "dry_run": true
  }
}
CLI
appbricx templates use trend-chart --param entity=order --param page_role=staff --dry-run

Goes well with

  • CSV export

    Component. A Download CSV button for any table, with a preview of the first rows.

    CsvExport

Your agent adds it. Appbricx runs it.

Start freeAll templates
Appbricx

The backend, runtime and hosting for apps your coding agent builds. On our cloud, in yours, or on your own servers.

Features

Coding agents and MCPVerify testingBuilder consolePostgres databaseData APIRealtimeRow-level securitySign-in and authPaymentsWorkflows and jobsAI in your appIntegrationsBackups and rollbackHosting and domainsSelf-host and exportAll features

Product

ShowcaseTemplatesPricingFor coding agentsPrivate cloudBring your own AI keyFAQ

Compare

Appbricx vs SupabaseLovable alternativeBolt alternativeFor freelancersFor agencies

Resources

DocumentationReferenceBlogSupportContact

© 2026 Appbricx. All rights reserved.

TermsPrivacyCookiesAcceptable Use