Proof before purchase

Power BI custom visual examples: the real source files

Before you spend a credit, read what you would get. Every file below is a real, buildable Power BI custom visual project file, shown in full, not a mock-up.

6

reference visuals in the generator's exact output format, with all four files and a recorded build

0

published generator runs (prompt plus the files it produced). Generations are private to the account that made them, and we do not publish a customer's prompt or code.

What these are. The build server keeps 6 hand-written reference visuals, one per settings family, and compiles them every time its toolchain changes. They follow the same codegen rules as the generator (default powerbi import, manual tooltips, selection and context menu, no innerHTML, an explicitly typed formatting model) and go through the same tsc --noEmit and pbiviz package steps. They were not generated from a prompt, so no prompt is shown.

No screenshots. No render of these files is stored, and we do not draw one. Each card shows the data roles, the format pane, the start of update() and the build results instead, recorded on November 10, 2026.

Bar chart

Cartesian chart on a categorical DataView: one category, one measure, axes, gridlines and data labels.

Data roles

Data roles in capabilities.json
Field wellRole nameAccepts
CategorycategoryField (grouping)
ValuemeasureMeasure

DataView mapping: categorical

Format pane cards (settings per card)

  • General · 2
  • X axis · 3
  • Y axis · 3
  • Data labels · 4
  • Gridlines · 2

visual.ts, start of update()

public update(options: VisualUpdateOptions): void {
    this.events.renderingStarted(options);
    try {
        const dv = options.dataViews && options.dataViews[0];
        const cat = dv?.categorical?.categories?.[0];
        const vals = dv?.categorical?.values?.[0];
        if (!dv || !cat || !vals || cat.values.length === 0) {
            this.svg.selectAll("*").remove();
            this.events.renderingFinished(options);
            return;
        }
        this.formattingSettings = this.formattingSettingsService
            .populateFormattingSettingsModel<VisualFormattingSettingsModel>(VisualFormattingSettingsModel, dv);

        const palette = this.host.colorPalette;
        this.data = cat.values.map((c, i) => ({
            category: String(c ?? ""),
            value: Number(vals.values[i] ?? 0) || 0,
            color: palette.getColor(String(c ?? i)).value,
            selectionId: this.host.createSelectionIdBuilder().withCategory(cat, i).createSelectionId(),
        }));

        const width = Number(options.viewport.width);
        const height = Number(options.viewport.height);
        if (width < 120 || height < 100) {
            this.svg.selectAll("*").remove();

Build

tsc --noEmit
pass
pbiviz package
pass
pbiviz --certification-audit
clean
.pbiviz size
26.0 KB
Build time
15 s

Built November 10, 2026with the build server's scripts/build-goldens.sh (powerbi-visuals-tools 7.2.1, TypeScript 5.9.3, powerbi-visuals-api 5.11.1, d3 7.9.0, Node.js 22). Size and time are from that one run.

View all 4 files of the bar chart →

Donut chart

Part-to-whole chart: per-slice colours, a label-style dropdown and a centre label.

Data roles

Data roles in capabilities.json
Field wellRole nameAccepts
LegendcategoryField (grouping)
ValuesmeasureMeasure

DataView mapping: categorical

Format pane cards (settings per card)

  • General · 2
  • Slices · 2
  • Data labels · 4
  • Center label · 2

visual.ts, start of update()

public update(options: VisualUpdateOptions): void {
    this.events.renderingStarted(options);
    try {
        const dv = options.dataViews && options.dataViews[0];
        const cat = dv?.categorical?.categories?.[0];
        const vals = dv?.categorical?.values?.[0];
        if (!dv || !cat || !vals || cat.values.length === 0) {
            this.svg.selectAll("*").remove();
            this.events.renderingFinished(options);
            return;
        }
        this.formattingSettings = this.formattingSettingsService
            .populateFormattingSettingsModel<VisualFormattingSettingsModel>(VisualFormattingSettingsModel, dv);
        const palette = this.host.colorPalette;
        this.data = cat.values
            .map((c, i) => ({
                category: String(c ?? ""),
                value: Math.max(0, Number(vals.values[i] ?? 0) || 0),
                color: palette.getColor(String(c ?? i)).value,
                selectionId: this.host.createSelectionIdBuilder().withCategory(cat, i).createSelectionId(),
            }))
            .filter((d) => d.value > 0);

        const width = Number(options.viewport.width);
        const height = Number(options.viewport.height);
        if (width < 120 || height < 100 || this.data.length === 0) {

Build

tsc --noEmit
pass
pbiviz package
pass
pbiviz --certification-audit
clean
.pbiviz size
26.6 KB
Build time
14 s

Built November 10, 2026with the build server's scripts/build-goldens.sh (powerbi-visuals-tools 7.2.1, TypeScript 5.9.3, powerbi-visuals-api 5.11.1, d3 7.9.0, Node.js 22). Size and time are from that one run.

View all 4 files of the donut chart →

Heatmap

Matrix grid: row and column groupings with a colour scale on the value.

Data roles

Data roles in capabilities.json
Field wellRole nameAccepts
RowsrowsField (grouping)
ColumnscolumnsField (grouping)
ValuemeasureMeasure

DataView mapping: categorical

Format pane cards (settings per card)

  • General · 2
  • Color scale · 2
  • Cells · 3

visual.ts, start of update()

public update(options: VisualUpdateOptions): void {
    this.events.renderingStarted(options);
    try {
        const dv = options.dataViews && options.dataViews[0];
        const cats = dv?.categorical?.categories ?? [];
        const vals = dv?.categorical?.values?.[0];
        if (!dv || cats.length === 0 || !vals || cats[0].values.length === 0) {
            this.svg.selectAll("*").remove();
            this.events.renderingFinished(options);
            return;
        }
        this.formattingSettings = this.formattingSettingsService
            .populateFormattingSettingsModel<VisualFormattingSettingsModel>(VisualFormattingSettingsModel, dv);

        const rowCat: DataViewCategoryColumn = cats.find((c) => c.source.roles?.["rows"]) ?? cats[0];
        const colCat: DataViewCategoryColumn | undefined = cats.find((c) => c.source.roles?.["columns"] && c !== rowCat);
        const n = rowCat.values.length;
        this.cells = [];
        for (let i = 0; i < n; i++) {
            const v = Number(vals.values[i] ?? NaN);
            if (isNaN(v)) continue;
            const builder = this.host.createSelectionIdBuilder().withCategory(rowCat, i);
            if (colCat) builder.withCategory(colCat, i);
            this.cells.push({
                row: String(rowCat.values[i] ?? ""),
                col: colCat ? String(colCat.values[i] ?? "") : vals.source.displayName,

Build

tsc --noEmit
pass
pbiviz package
pass
pbiviz --certification-audit
clean
.pbiviz size
25.3 KB
Build time
14 s

Built November 10, 2026with the build server's scripts/build-goldens.sh (powerbi-visuals-tools 7.2.1, TypeScript 5.9.3, powerbi-visuals-api 5.11.1, d3 7.9.0, Node.js 22). Size and time are from that one run.

View all 4 files of the heatmap → · Heatmap for Power BI

KPI card with sparkline

Single-value card built in HTML: value, target and a trend sparkline by period.

Data roles

Data roles in capabilities.json
Field wellRole nameAccepts
ValuemeasureMeasure
TargettargetMeasure
Trend (by period)categoryField (grouping)

DataView mapping: categorical

Format pane cards (settings per card)

  • General · 2
  • Value · 3
  • Trend · 3

visual.ts, start of update()

public update(options: VisualUpdateOptions): void {
    this.events.renderingStarted(options);
    try {
        const dv = options.dataViews && options.dataViews[0];
        const values = dv?.categorical?.values;
        if (!dv || !values || values.length === 0) {
            this.setEmpty("Add a measure");
            this.events.renderingFinished(options);
            return;
        }
        this.formattingSettings = this.formattingSettingsService
            .populateFormattingSettingsModel<VisualFormattingSettingsModel>(VisualFormattingSettingsModel, dv);
        const s = this.formattingSettings;

        const measureCol = values.find((v) => v.source.roles?.["measure"]) ?? values[0];
        const targetCol = values.find((v) => v.source.roles?.["target"]);
        const series = measureCol.values.map((v) => Number(v ?? 0)).filter((n) => !isNaN(n));
        if (series.length === 0) {
            this.setEmpty("No data");
            this.events.renderingFinished(options);
            return;
        }
        const current = series[series.length - 1];
        const previous = series.length > 1 ? series[series.length - 2] : undefined;
        const target = targetCol ? Number(targetCol.values[targetCol.values.length - 1] ?? NaN) : NaN;

Build

tsc --noEmit
pass
pbiviz package
pass
pbiviz --certification-audit
clean
.pbiviz size
28.0 KB
Build time
14 s

Built November 10, 2026with the build server's scripts/build-goldens.sh (powerbi-visuals-tools 7.2.1, TypeScript 5.9.3, powerbi-visuals-api 5.11.1, d3 7.9.0, Node.js 22). Size and time are from that one run.

View all 4 files of the kpi card with sparkline → · KPI card with sparkline for Power BI

Multi-series line chart

Cartesian chart with grouped series: an axis field, a legend field and values, with a legend card.

Data roles

Data roles in capabilities.json
Field wellRole nameAccepts
AxiscategoryField (grouping)
LegendseriesField (grouping)
ValuesmeasureMeasure

DataView mapping: categorical

Format pane cards (settings per card)

  • General · 2
  • Lines · 3
  • Legend · 2
  • Y axis · 3

visual.ts, start of update()

public update(options: VisualUpdateOptions): void {
    this.events.renderingStarted(options);
    try {
        const dv = options.dataViews && options.dataViews[0];
        const cat = dv?.categorical?.categories?.[0];
        const grouped = dv?.categorical?.values?.grouped ? dv.categorical.values.grouped() : [];
        if (!dv || !cat || cat.values.length === 0 || grouped.length === 0) {
            this.svg.selectAll("*").remove();
            this.events.renderingFinished(options);
            return;
        }
        this.formattingSettings = this.formattingSettingsService
            .populateFormattingSettingsModel<VisualFormattingSettingsModel>(VisualFormattingSettingsModel, dv);

        this.categories = cat.values.map((v) => String(v ?? ""));
        const palette = this.host.colorPalette;
        this.series = grouped.map((grp: DataViewValueColumnGroup, gi: number) => {
            const col = grp.values[0];
            const name = grp.name !== undefined ? String(grp.name) : (col?.source?.displayName ?? `Series ${gi + 1}`);
            const seriesId = this.host.createSelectionIdBuilder().withSeries(dv.categorical!.values!, grp).createSelectionId();
            const points: Point[] = this.categories.map((x, i) => ({
                x,
                y: Number(col?.values[i] ?? 0) || 0,
                series: name,
                selectionId: this.host.createSelectionIdBuilder().withCategory(cat, i).withSeries(dv.categorical!.values!, grp).createSelectionId(),
            }));

Build

tsc --noEmit
pass
pbiviz package
pass
pbiviz --certification-audit
clean
.pbiviz size
29.6 KB
Build time
14 s

Built November 10, 2026with the build server's scripts/build-goldens.sh (powerbi-visuals-tools 7.2.1, TypeScript 5.9.3, powerbi-visuals-api 5.11.1, d3 7.9.0, Node.js 22). Size and time are from that one run.

View all 4 files of the multi-series line chart →

Table

Table DataView rendered as HTML (no d3): header and row formatting cards.

Data roles

Data roles in capabilities.json
Field wellRole nameAccepts
ColumnscolumnsField or measure

DataView mapping: table

Format pane cards (settings per card)

  • General · 2
  • Header · 3
  • Rows · 4

visual.ts, start of update()

public update(options: VisualUpdateOptions): void {
    this.events.renderingStarted(options);
    try {
        const dv = options.dataViews && options.dataViews[0];
        const table = dv?.table;
        if (!dv || !table || !table.rows || table.rows.length === 0) {
            this.table.replaceChildren();
            this.events.renderingFinished(options);
            return;
        }
        this.formattingSettings = this.formattingSettingsService
            .populateFormattingSettingsModel<VisualFormattingSettingsModel>(VisualFormattingSettingsModel, dv);
        this.rows = table.rows.map((cells, i) => ({
            cells,
            selectionId: this.host.createSelectionIdBuilder().withTable(table, i).createSelectionId(),
        }));
        const width = Number(options.viewport.width);
        const height = Number(options.viewport.height);
        this.root.style.width = `${width}px`;
        this.root.style.height = `${height}px`;
        if (width < 120 || height < 100) {
            this.table.replaceChildren();
        } else {
            this.render(table, width);
        }
    } catch (err) {

Build

tsc --noEmit
pass
pbiviz package
pass
pbiviz --certification-audit
clean
.pbiviz size
6.1 KB
Build time
10 s

Built November 10, 2026with the build server's scripts/build-goldens.sh (powerbi-visuals-tools 7.2.1, TypeScript 5.9.3, powerbi-visuals-api 5.11.1, d3 7.9.0, Node.js 22). Size and time are from that one run.

View all 4 files of the table →

What a generated visual adds

A generation writes the same four files from your description, then type-checks them with the real TypeScript compiler against the Power BI SDK packages. Compiler errors go back to the model for up to three repair attempts before the run is marked failed (and refunded). A passing run is packaged with pbiviz, and its page in your history shows each file, a download for every file and the .pbiviz.

Compare the cost with a freelancer, a per-user Marketplace licence or building it yourself on build vs buy: what a custom visual costs, read the refund rules on the quality SLA, or browse the visual catalog and the AI custom visual generator.

FAQ

Were these visuals generated by the AI?

No. They are hand-written reference visuals that the build server compiles whenever its toolchain changes. They use the same four files, the same codegen rules and the same tsc and pbiviz package steps as a generated visual, which is why they are a fair picture of what you download. Published generator runs, each with the prompt that produced it, are listed separately; there are 0 today.

Why are there no screenshots?

We only show images that exist, and no render of these files is stored. Each example shows what you can check without one: the data roles you drag fields into, every format-pane card and setting, the update() code and the build results.

Can I use this code?

Read it here to judge the output. Code the generator writes for you is yours to keep, change and rebuild with pbiviz package; the full files of every generation are on its page in your history.

Make the report.
Then make it yours.

The Design Studio, templates and tools are free with no account (exports carry a small VizForge mark until you sign in). Sign up when you want AI: 5 credits on us, no card.

Generated visuals are type-checked and built before you download them; one that fails the quality SLA refunds its credits. See all features or pricing.