Quick Start Example¶
This is a minimal "hello world" board to get you started with Dataface.
Complete Board¶
title: "Hello World Board" queries: sales: metrics: [total_revenue] dimensions: [month] rows: - title: "Monthly Revenue" charts: revenue_chart: title: "Revenue by Month" query: queries.sales type: bar x: month y: total_revenue cols: - revenue_chart
Step-by-Step Explanation¶
1. Board Definition¶
title: "Hello World Board"
title: Display title (optional but recommended)
2. Query Definition¶
queries: sales: metrics: [total_revenue] dimensions: [month]
sales: Query name (use descriptive names)metrics: Array of metric names from your dbt Semantic Layerdimensions: Array of dimension names for grouping
3. Section and Chart¶
rows: - title: "Monthly Revenue" charts: revenue_chart: title: "Revenue by Month" query: queries.sales type: bar x: month y: total_revenue cols: - revenue_chart
rows: Top-level layout (vertical stack)title: Section titlecharts: Chart definitionscols: Nested horizontal layout containing the chart referencerevenue_chart: Chart identifierquery: queries.sales: References the query defined above (usequeries.prefix for clarity)type: bar: Bar chart typex: month: X-axis uses themonthdimensiony: total_revenue: Y-axis uses thetotal_revenuemetric
How to Run It¶
- Save this YAML to a file (e.g.,
hello_world.yml) - Validate it:
- Preview it:
- Open your browser to
http://localhost:8080
What You'll See¶
- A bar chart showing revenue by month
- Data fetched from your dbt Semantic Layer
- A responsive layout that works on any device
Next Steps¶
- KPI Board - Add multiple KPIs
- Interactive Board - Add variables and filters
- Read the Queries Guide - Learn more about queries
- Read the Charts Guide - Learn more about charts
- CLI Reference - Complete CLI command reference
- Getting Started Guide - Step-by-step tutorial