RegiaBI apps
v0.6.142AI Data Components over MCP: working what-if apps, interactive tables and maps, plus 90 chart types.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
assess_data_shape Assess data shape
Profile a dataset locally (no data leaves the machine): per-column types, cardinality, ranges, measure/dimension roles, temporal/ordinal detection, and cross-column signals (nesting, shared values, association). This is the same measurement engine the BIC Power BI visual uses before generating a chart.
| Parameter | Type | Description |
|---|---|---|
csv_path | string | Path to a CSV file (header row required). |
csv_text | string | Inline CSV text (alternative to csv_path). |
culture | string | The caller's language and region as a BCP 47 tag such as 'de-DE', 'fr' or 'ja-JP'. Default 'en-US'. It is the language the chart's own text is written in (titles, axis labels, legends, notes), and it… |
data | object | A pre-typed {columns, rows} table — the shape a Fabric DAX query / dataframe already has. Alternative to csv_path/csv_text; when columns carry isMeasure/format/description the shape matches PBI fide… |
descriptions | object | Per-column human DESCRIPTION — gives the model semantic context the bare column name lacks. |
dimensions | array | Columns to treat as DIMENSIONS (a PBI category/axis well — fields to group/break by). Use for numeric codes/years that should NOT be aggregated. |
formats | object | Per-column number/date FORMAT STRING (e.g. {"Revenue":"$#,##0","Margin":"0.0%"}). PBI supplies these from its model; a CSV can't, so provide them to steer number formatting. |
group_by | array | Columns that are the PRIMARY series/breakdown (the PBI 'Group by' well); the backend leads the visualization with these. |
measures | array | Columns to treat as MEASURES (the PBI 'Values' well — fields the chart aggregates). Numeric non-identifier columns are measures by default. |
non_additive | array | MEASURE columns that must NOT be summed (a ratio/average/rate — use mean, never stack). Usually auto-detected; this is an authoritative override. |
privacy_level | string | How much detail to compute/share: 0 names only, 10 +counts, 20 +detailed stats (default), 30 +obfuscated sample rows. |
get_guide Read the build guide
How to build an app with these charts, from the guide this package ships. Local and free: no network, no credentials. topic 'fabric-app' (the default) is what a Microsoft Fabric App on the Rayfin data app template needs: what to pull, generating, wiring in React, the Fabric App section and the time-savers. 'all' is the whole guide, including Blazor. 'chart-shapes' lists every chart type with the columns, limits and renderers it needs. 'settings' lists the choices a person can make about a chart, with their options and defaults.
| Parameter | Type | Description |
|---|---|---|
topic | string | 'fabric-app' (default), 'all', 'chart-shapes', or 'settings'. |
list_eligible_charts List eligible chart types
The AUTHORITATIVE list of chart types (maps, tables a reader works with and app widgets included) that can render this dataset — the server's own eligibility engine, NOT a local guess. Profiles the data locally, then sends that profile to the backend. NO LLM in the loop, but this is a NETWORK call and it is METERED — see the licensing note below. By default the tool DETECTS the project's language (JS/TS vs Python from the working dir) and returns the charts for THAT language, SCOPED and ordered by how well each type fits this data (best first; `order: 'variety'` favors newer and less-commo…
| Parameter | Type | Description |
|---|---|---|
chart_style | string | The user's own preference for which family of charts the list covers, as they've stated it. 'traditional' lists only the familiar forms (bar, stacked and grouped bar, line, area, pie, donut, card, gau… |
csv_path | string | Path to a CSV file (header row required). |
csv_text | string | Inline CSV text (alternative to csv_path). |
culture | string | The caller's language and region as a BCP 47 tag such as 'de-DE', 'fr' or 'ja-JP'. Default 'en-US'. It is the language the chart's own text is written in (titles, axis labels, legends, notes), and it… |
data | object | A pre-typed {columns, rows} table — the shape a Fabric DAX query / dataframe already has. Alternative to csv_path/csv_text; when columns carry isMeasure/format/description the shape matches PBI fide… |
descriptions | object | Per-column human DESCRIPTION — gives the model semantic context the bare column name lacks. |
dimensions | array | Columns to treat as DIMENSIONS (a PBI category/axis well — fields to group/break by). Use for numeric codes/years that should NOT be aggregated. |
formats | object | Per-column number/date FORMAT STRING (e.g. {"Revenue":"$#,##0","Margin":"0.0%"}). PBI supplies these from its model; a CSV can't, so provide them to steer number formatting. |
group_by | array | Columns that are the PRIMARY series/breakdown (the PBI 'Group by' well); the backend leads the visualization with these. |
height | number | Viewport height px (default 600). |
language | string | Project source language → the server ranks across that language's renderers (javascript/typescript = D3, python = Plotly/matplotlib). Omit to AUTO-DETECT from the working dir; `renderer` (if given)… |
level_of_detail | string | The user's own preference for how much of the data to see, as they've stated it. 'High' = every observation as its own mark, 'Medium' = every row shown as a distribution, 'Low' = one mark per category… |
measures | array | Columns to treat as MEASURES (the PBI 'Values' well — fields the chart aggregates). Numeric non-identifier columns are measures by default. |
name_filter | string | Show only chart types matching this text (the same matcher the Power BI and Excel chart-type lists use). Three tiers, first non-empty one wins outright: the term starting a WORD in the name ('gan' ->… |
name_filter_match | string | How name_filter matches a name. 'loose' (the default) ignores accents, case, spaces and punctuation, so 'barchart' finds Bar chart. 'exact' folds accents and case and collapses repeated spaces, and no… |
non_additive | array | MEASURE columns that must NOT be summed (a ratio/average/rate — use mean, never stack). Usually auto-detected; this is an authoritative override. |
order | string | How the list is ordered. 'fit' (the default) = by how well each chart type fits THIS data, nothing else - use it to choose a chart for a question. 'variety' = the picker's selection order, which favor… |
privacy_level | string | How much detail to compute/share: 0 names only, 10 +counts, 20 +detailed stats (default), 30 +obfuscated sample rows. |
project_dir | string | Directory to auto-detect the project language from (default: the folder setup_fabric_app used, else the working directory or the one project folder directly inside it). |
renderer | string | Force a specific renderer (overrides `language`): a concrete renderer ranks that renderer's charts; '' = the full renderer-agnostic eligibility (all renderers, ranked by chart type alone). Omit to use… |
top | number | Show only the top-N ranked results. Omit for all. |
width | number | Viewport width px (default 800) — affects small-viewport / facet-budget gates. |
generate_chart Generate chart code
Generate ready-to-render chart code for a dataset via the BIC backend: the data shape is profiled locally, the backend picks a suitable chart type (or honors chart_type), and returns code that has passed the backend's eligibility gates and quality checks. Needs a trial or paid account: with nothing configured, the first call opens a browser sign-in, waits for it and then finishes the chart (a license key in the environment or ~/.bic/credentials.json is the alternative for a machine with no browser). The returned D3 code is a portable render(container, data, options) function meant to be MERGED…
preview_request Preview what a request sends
Shows exactly what a chart generation would send to the BIC backend for these arguments - the measured shape of your data (column names, types, counts, ranges), the settings, and whether any sample rows travel - with the credentials removed. SENDS NOTHING and needs no license: it is local and free. Takes the same arguments as a generation. It answers 'what data leaves my machine?'; the eligibility list sends a subset of the same shape.
check_request Check a chart request against the data
Checks a chart request against this data before anything is generated. Takes the same arguments as a generation - the chart type and every setting (date grain, limit, overlay, required columns, rows policy, data labels and the rest) - and answers, in the server's own words, each ask this data can't honor and why: a channel the data doesn't have, too little of one for the ask, or a name the catalog doesn't know. When the chart type itself is denied, it also lists up to five chart types that fit this data, best fit first. An OK names the asks it checked. Profiles the data locally and sends that…
check_chart Check a generated chart locally
Verify a generated chart locally before deploying: draws the chart.js that generate_chart wrote, headless, against its data - the rows query_semantic_model saved, a CSV, or the rows it was generated for - through @bicharts/chart-host, and reports in plain words: the marks drawn by kind, anything thrown (with the line), whether it came out blank, anything drawn outside its frame, and whether a click on a mark reaches onSelect with source rows. Takes seconds; local and free (no network, no credentials, nothing sent). Run it after each generate_chart instead of deploying to see whether a chart wo…
| Parameter | Type | Description |
|---|---|---|
chart | string | The chart's folder name under the project's src/charts (the out_dir given to generate_chart), e.g. "region-map". |
chart_path | string | Or the path of the chart.js generate_chart wrote, or the folder it is in. |
csv_path | string | Or a CSV with the chart's columns. |
data_name | string | The name given to query_semantic_model: checks on the rows it saved (.bic/data/<name>.csv). Default: a saved file named like the chart's folder, else the rows the chart was generated for. |
height | number | The height in px to check at (default: the minChartHeight of the app's BicChartPanel around this chart, else the height it was generated for, else 600). |
project_dir | string | The app's folder. Defaults to the folder setup_fabric_app used, else the working directory or the one project folder inside it. |
width | number | The width in px to check at (default: the minChartWidth of the app's BicChartPanel around this chart, else the width it was generated for, else 800). |
check_app Check the whole app before deploying
Check how the app uses the chart library, before every deploy and after check_chart: reads the app's own source (never the files generate_chart and setup_fabric_app wrote) and reports, each with file, line and the library call to use instead: hand-written selection glue (a toggle, a second-click guard, a remount to clear) where useBicFilter + selects does it; each chart's filter wiring - the page filter its clicks set and the filters its query or component follows (filtered query, highlight only or none) - with a chart filtered by the filter it sets, a treatAs column the model's relationships…
| Parameter | Type | Description |
|---|---|---|
check_npm | boolean | Compare the stack with npm's latest (default true). |
draw_charts | boolean | Also draw every chart under src/charts (default true). |
project_dir | string | The app's folder. Defaults to the folder setup_fabric_app used, else the working directory or the one project folder inside it. |
setup_fabric_app Set up a Fabric App for these charts
Run once in a Microsoft Fabric App scaffolded from Rayfin's data app template, before the first chart: installs @bicharts/chart-host (at this server's version) and d3, adds src/lib/bic-chart-options.ts (the app's Fabric theme as chart options) and src/components/bic-chart-panel.tsx (a chart box that measures itself and shows the query's loading, error and empty states) and .agents/skills/regiabi-charts/SKILL.md (also written to .claude/skills/, where Claude Code reads it), ignores .bic/, and puts every @microsoft/rayfin-* package on npm's latest, the release `rayfin init` installs (run it befo…
| Parameter | Type | Description |
|---|---|---|
features | array | Also add finished files for readers' notes on chart marks ("notes") and saved settings of a chart's own controls ("scenarios", e.g. a What-if chart's rate). Needs Rayfin's data service on (rayfin/data… |
project_dir | string | The Fabric App project folder. Defaults to the working directory, or the one Fabric App folder directly inside it. |
skip_install | boolean | Add the files only; don't run npm install. |
query_semantic_model Query the semantic model for a chart
In a Microsoft Fabric App built on Rayfin's data app template: runs one chart's DAX query through the project's own tooling - its semantic model's Rayfin connector (rayfin/rayfin.yml), or on the template's older layout its `fabric-app-data` CLI - renames the `Table[Column]` and `[Measure]` headers to plain names (the names the chart.component.tsx that generate_chart writes will match on live rows), saves EVERY row as CSV, reads each column's role, format and description from the model, and profiles the result. Replaces the query, rename, save and profile steps with one call, and returns the ar…
| Parameter | Type | Description |
|---|---|---|
name * | string | A file name for this chart's data, e.g. "region-map" (saved as <name>.csv). |
alias | string | The semantic model's connector name in rayfin/rayfin.yml (the template's older layout: its alias in fabric.yaml) - the same name the app passes as connection. Needed only when more than one is declare… |
dax | string | The chart's DAX query (EVALUATE ...). Or pass dax_file. |
dax_file | string | Path to a .dax file holding the query, instead of dax. |
out_dir | string | Where to save the CSV. Defaults to <project_dir>/.bic/data. |
project_dir | string | The Fabric App project folder (holds rayfin/rayfin.yml, or fabric.yaml, and node_modules). Defaults to the folder setup_fabric_app used, else the working directory or the one Fabric App folder directl… |
suggest_charts Suggest charts for a semantic model
Which charts suit this data? Answers 'what are good chart types for this dataset / model', 'what can I chart here', 'recommend some charts' for a semantic model in a Microsoft Fabric App built on Rayfin's data app template, in ONE call, from the model's real rows: reads its tables, columns, measures and relationships through the project's own tooling (its Rayfin connector, or the older layout's `fabric-app-data` CLI), finds its natural views (measures by place, flows between places, measures over time, measures by category), queries each at its grain, keeps the measures that vary there, and as…
| Parameter | Type | Description |
|---|---|---|
alias | string | The semantic model's connector name in rayfin/rayfin.yml (the template's older layout: its alias in fabric.yaml) - the same name the app passes as connection. Needed only when more than one is declare… |
project_dir | string | The Fabric App project folder (holds rayfin/rayfin.yml, or fabric.yaml, and node_modules). Defaults to the folder setup_fabric_app used, else the working directory or the one Fabric App folder directl… |
top | integer | How many fitting chart types to name per view (default 6). |
views | array | Groupings to ask about instead of the model's own. Omit to let the model's structure decide. |