← Back to list

add-evidence-page
by nf-core
⭐ 2🍴 3📅 Jan 17, 2026
SKILL.md
name: Add Evidence Page description: Create new Evidence.dev dashboard page with charts and tables
Add Evidence Page
When to Use
- Adding new visualization/dashboard
- Creating charts for existing DLT data
File Structure
├── pages/<category>/<page>.md # Page with charts
└── sources/nfcore_db/<query>.sql # SQL data source
Page Template
---
title: Page Title
sidebar_position: 1
---
Brief description of what this page shows.
```sql summary_query
SELECT COUNT(*) as total FROM nfcore_db.<table_name>
SELECT
date_trunc('week', created_at) as week,
COUNT(*) as count
FROM nfcore_db.<table_name>
GROUP BY 1
ORDER BY 1
SQL Source Template
File: sources/nfcore_db/<query>.sql
SELECT
column1,
column2,
COUNT(*) as count
FROM <table_name>
GROUP BY 1, 2
ORDER BY count DESC
Component Reference
| Component | Use Case | Key Props |
|---|---|---|
| BigValue | KPI cards | data, value, title, sparkline, fmt |
| LineChart | Time series | data, x, y, title, yAxisTitle |
| AreaChart | Stacked trends | data, x, y, series, seriesColors |
| BarChart | Comparisons | data, x, y, type=grouped, yFmt |
| DataTable | Tabular data | data, search, totalRow, <Column> |
| CalendarHeatmap | Daily heatmap | data, date, value |
| Tabs/Tab | Tabbed views | <Tab label="Name"> |
| DateRange | Date filter | name, data, dates, defaultValue |
DataTable with Columns
<DataTable data={query} search=true totalRow=true>
<Column id="name" title="Name"/>
<Column id="count" title="Count" align="right"/>
<Column id="url" contentType=link linkLabel="View"/>
<Column id="score" contentType=colorscale colorScale=negative/>
</DataTable>
Stacked AreaChart with Colors
<AreaChart
data={query}
x=date
y={["category_a", "category_b", "category_c"]}
seriesColors={['#2ecc71', '#f39c12', '#e74c3c']}
title="Distribution Over Time"
/>
Date Filtering Pattern
<DateRange name="date_range" data={base_query} dates=timestamp defaultValue="Last 90 Days"/>
```sql filtered_query
SELECT * FROM nfcore_db.<table>
WHERE timestamp >= '${inputs.date_range.start}'
AND timestamp <= '${inputs.date_range.end}'
Testing
npm run dev
# Open http://localhost:3000/path/to/page
Checklist
- Create SQL source in
sources/nfcore_db/ - Create page in
pages/<category>/ - Add frontmatter (title, sidebar_position)
- Add summary metrics (BigValue)
- Add time series chart (LineChart/AreaChart)
- Add detail table (DataTable)
- Test with
npm run dev
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
