title: "Visualizing Data with Bricks Charts" description: "Turn your appβs data into interactive, responsive visualizations in seconds." category: "Data Visualization" date: "2025-10-05"
Data tells a story β and with Bricks Charts, you can make that story interactive, beautiful, and effortless to build.
Charts in Bricks are powered by a lightweight visual interface that connects directly to your data sources.
π Supported Chart Types
| Type | Use Case | | --------------------- | ------------------------------- | | Line Chart | Time-series trends and metrics | | Bar Chart | Category comparisons | | Pie / Donut Chart | Distribution breakdowns | | Area Chart | Cumulative growth visualization | | Scatter Plot | Correlation analysis |
π‘ All charts are responsive by default and support dark mode.
π§© Adding a Chart
- Open your app in the builder.
- Click Add β Chart Component.
- Connect a data source (database, API, or custom JSON).
- Choose a chart type and style options.
Example:
{
"type": "bar",
"data": {
"labels": ["Q1", "Q2", "Q3", "Q4"],
"values": [1200, 1800, 950, 2100]
},
"style": { "color": "#4f46e5", "rounded": true }
}
π¨ Customizing Charts
Bricks gives full control over design:
Adjust colors, borders, and axis styles
Add interactive hover states
Display legends, tooltips, and data labels
Sync charts with user input for live updates
π Real-Time Data
Charts stay up to date automatically:
Connect to live databases
Subscribe to WebSocket or API streams
Enable auto-refresh intervals
// Example: Live-updating metric
useEffect(() => {
const socket = new WebSocket("wss://data.bricks.run");
socket.onmessage = (e) => updateChart(JSON.parse(e.data));
}, []);
π Best Practices
β
Keep visuals minimal β highlight what matters.
β
Limit color variety for clarity.
β
Label everything (units, axes, and time ranges).
β
Provide contextual summaries below charts.
π Beyond Charts
Pair Bricks Charts with:
Automations to trigger alerts from metrics
AI Insights to generate summaries
Dashboards for investors or teams
βNumbers are the language of truth. Bricks gives them a voice.β