BI Tool
Organize a dashboard with sections
Copies the Quill CLI's install command: curl -fsSL https://quill.co/install.sh | shView as MarkdownThe whole page, as plain Markdown.
1. Add a section

2. Create Sections For "Charts" and "Tables"

3. Drag reports into sections

4. Rearrange reports

5. Build
import { Chart, useDashboard } from "@quillsql/react";
// One grid per section: how many reports share a row, and how tall each is.
const grids: Record<string, { columns: number; height: number }> = {
Metrics: { columns: 4, height: 48 },
Charts: { columns: 2, height: 300 },
Tables: { columns: 1, height: 360 },
};
export function Sales() {
const { sections, sectionOrder } = useDashboard("Sales");
if (!sections) return <p>Loading…</p>;
return sectionOrder.map(({ section }) => {
const reports = sections[section] ?? [];
if (reports.length === 0) return null;
const { columns, height } = grids[section] ?? { columns: 2, height: 300 };
return (
<section key={section}>
<h2>{section}</h2>
<div style={{ display: "grid", gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`, gap: 16 }}>
{reports.map((report) => (
<div key={report.id} className="card">
<h3>{report.name}</h3>
<Chart reportId={report.id} containerStyle={{ width: "100%", height }} />
</div>
))}
</div>
</section>
);
});
}