# CSV to Dashboard Report (`vpcapps/csv-to-dashboard-report`) Actor

Turn a CSV export (Jira issues, Etsy orders and statements, biometric attendance or any table) into a one-file HTML dashboard report: KPI cards, charts, plain-English findings and bordered tables, plus a dataset of every KPI.

- **URL**: https://apify.com/vpcapps/csv-to-dashboard-report.md
- **Developed by:** [VPC Apps](https://apify.com/vpcapps) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## CSV to Dashboard Report

Turn a CSV export into a **one-file HTML dashboard report** in seconds: KPI cards, charts, findings in plain English and bordered tables you can quote in a meeting. The report needs no scripts and no internet to open, so you can email it, attach it to a ticket or keep it in a shared drive.

It works with any table and has tailored reports for four common exports:

| Export | What the report shows |
|---|---|
| **Jira issues CSV** (current or all fields) | Open vs resolved, backlog change over the last 4 weeks, median time to resolve, age of open issues, open by priority / assignee / component, fixed vs open by priority, status x priority table, high-priority issues open > 30 days, reopened issues |
| **Etsy Order Items CSV and payments statement CSV** (one or both) | Item sales, orders, every Etsy fee by type, ads, refunds, product cost, **true profit** and margin, sales by month, best sellers |
| **Biometric attendance** (punch log such as ZKTeco / BioTime, or a daily In/Out report such as eSSL) | Attendance rate, late arrivals, early outs, overtime, absences, missing punches, by department and per employee |
| **Any other table** (sales lists, ticket exports, inventories, surveys) | Rows, % complete, totals of money columns, date range, duplicates, top values per category, rows and totals per day / week / month, spread of the main measure, number stats, a category x category table, a data quality table |

### How to use it

1. Give the file: paste a **public link** to a `.csv`, `.tsv` or `.txt` file, **upload** it in the input form, or **paste** the CSV text.
2. Leave **Report template** on *Auto-detect* (it reads the column names), or pick one.
3. Optionally set a **title**, and the options for your template (Jira issue type, Etsy product cost %, attendance shift times, grace minutes and weekly off).
4. Run. Open **Dashboard report (HTML)** on the Output tab.

No file? Run it with the default input to see a report on a built-in synthetic sample (an invented sales list). Pick a template with no file to see its sample (Jira, Etsy or attendance).

Files can be comma, semicolon or tab separated, with or without quotes, in UTF-8 (with or without BOM), UTF-16 or Windows-1252. The first row must hold the column names.

### Input

| Field | Type | Notes |
|---|---|---|
| `csvUrl` | string (link or upload) | Public http(s) link or uploaded file, up to 20 MB. Redirects are followed |
| `csvText` | string | Pasted CSV text; used instead of `csvUrl` when filled |
| `template` | `auto` | `jira` | `etsy` | `attendance` | `generic` | Default `auto` |
| `title` | string | Report heading; default fits the template |
| `secondCsvUrl` | string (link or upload) | Etsy only: the other Etsy file |
| `productCostPercent` | integer 0–100 | Etsy: cost of goods as % of sales (default 0) |
| `jiraIssueType` | string | Jira: e.g. `Bug`, `Story`; empty = Bug when present, `*` = all types |
| `shiftStart`, `shiftEnd` | `HH:MM` | Attendance shift (default 09:30–18:30) |
| `graceMinutes` | integer | Attendance: minutes before an arrival is late (default 10) |
| `weeklyOff` | `0` | `0,6` | `5` | `none` | Attendance: Sunday, Saturday + Sunday, Friday, or no weekly off |

Example input:

```json
{
  "csvUrl": "https://example.com/exports/jira-issues.csv",
  "template": "auto",
  "title": "Release 4.2 QA status"
}
```

### Output

- **`report.html`** in the run's key-value store: the full dashboard as one HTML file (light and dark mode, prints to A4, fits a phone screen).
- **Dataset**: one item per KPI card and per key finding, plus one summary item:

(From the built-in synthetic Jira sample.)

```json
{ "type": "kpi", "name": "Open defects", "value": "45", "state": "", "explanation": "23% of all defects" }
{ "type": "kpi", "name": "Backlog change, last 4 weeks", "value": "+1", "state": "bad", "explanation": "51 created · 50 resolved" }
{ "type": "finding", "name": "Finding 2", "value": "Last 4 weeks: 51 created vs 50 resolved. The backlog is growing by 1.", "state": "", "explanation": "Key finding 2 of the report, most important first." }
{ "type": "summary", "name": "Summary", "template": "jira", "rows": 320, "rowsInFile": 320, "columns": 25, "dateFrom": "2026-06-19", "dateTo": "2026-10-30", "capped": false }
```

`state` is `good`, `warn`, `bad` or empty, the same colour the KPI card has in the report.

- **`OUTPUT`** record: links to the report and the dataset, plus the template, row and column counts and the date range.

Use the dataset to feed a spreadsheet, a Slack message or another Actor, and the HTML report for people.

### Limits

- Files up to **20 MB**.
- Each file is read up to its first **5,000 rows**, the same as the free web version of this engine; the report then says "reads the first 5,000 rows per file" and the summary item has `capped: true` and the real row count in `rowsInFile`.
- One kind of export per run (two files only for Etsy's order items + statement).
- A file that is not a table (an `.xlsx` or PDF renamed to `.csv`, a web page, an empty file, a header with no rows, a single column) ends the run with a clear message saying what is wrong and how to fix it.

### Pricing

Free during launch: you pay only the small Apify platform usage of the run (a typical report takes a few seconds at 512 MB).

### FAQ

**Does it work with Excel files?** Save the sheet as CSV first (File > Save As > CSV UTF-8).

**My link gives an error.** The link must download the file itself and be public. For a cloud drive, use its direct download or "anyone with the link" sharing, or simply upload the file in the input form.

**My export isn't recognised.** Any table still gets the general dashboard. The tailored templates find their columns by name (for example Jira's `Issue key`, `Status`, `Priority`, `Created`).

**Can I change the charts?** Not in this version: the report uses fixed rules that pick the most useful columns. Set the template and the template options to steer it.

**Dates look wrong.** Day-first and month-first dates are told apart from the values themselves (any first part above 12 means day first). An export where every date fits both ways (for example all days 1–12) is read day first.

### Privacy

The file is processed only during the run, inside the Actor's container. Nothing is sent anywhere else and no external services are called while building the report. The report, the dataset and the OUTPUT record stay in your own Apify storage and follow Apify's default data retention for your plan; delete the run's storages to remove them sooner. Use synthetic or permitted data only.

### Support

Questions or a file that doesn't work: open an issue on this Actor's **Issues** tab, or email **support@vpcapps.net**. Made by VPC Apps.

***

#### Building from source (maintainers)

The report engine is shared with VPC Apps' offline CSV to Dashboard web tool. `src/e8/` is a **copy** of that engine (engine, charts and template scripts, the report CSS and the synthetic samples), made by `node tools/sync_e8.js` from the sibling `e8_dashboard` folder of the source repository; never edit `src/e8/` by hand. Run the sync before every `apify push`.

`src/report.js` loads the browser scripts into a Node `vm` context whose global object is also `window`, then assembles the same HTML as the web tool's "Download shareable report". `src/main.js` is the Actor (input, download, storage).

Row-cap decision (2026-11-14): the 5,000-row limit lives in the web tool's app layer (`E8.Engine.FREE_ROWS`), not inside the engine's parsing; the Actor applies the same limit so its reports match the free web tool and runs stay small. Lifting it is a later paid-tier option (`rowCap` in `buildReport`).

Tests: `node tests/run_local.mjs` (every case runs `src/main.js` through the Apify SDK's local storage; no Apify login needed) and `python -I tests/shots.py [--template jira]` (headless Chrome screenshots into `tests/out/`, git-ignored).

# Actor input Schema

## `csvUrl` (type: `string`):

A public link to a .csv, .tsv or .txt file (comma, semicolon or tab separated, first row = column names), or upload the file here. Up to 20 MB. Leave empty to use the built-in synthetic sample.

## `csvText` (type: `string`):

Paste the CSV contents instead of a file. Used when filled in (it wins over the link).

## `template` (type: `string`):

Auto picks from the column names: Jira issues export, Etsy Order Items or payments statement, biometric attendance (punch log or daily In/Out), otherwise a general dashboard of any table.

## `title` (type: `string`):

Heading of the report. Empty = a title that fits the template (for example "QA status report").

## `secondCsvUrl` (type: `string`):

Etsy only: give the Order Items CSV and the payments statement CSV together for true profit after fees, ads and refunds. Either file alone also works.

## `productCostPercent` (type: `integer`):

Your cost of making the items, as a percent of item sales. Used for the profit figure.

## `jiraIssueType` (type: `string`):

Which issue type to report on, for example Bug or Story. Empty = Bug when the file has bugs, else all types. \* = all types.

## `shiftStart` (type: `string`):

24-hour time, for example 09:30.

## `shiftEnd` (type: `string`):

24-hour time, for example 18:30.

## `graceMinutes` (type: `integer`):

Minutes after the shift start before an arrival counts as late.

## `weeklyOff` (type: `string`):

Days that are not working days.

## Actor input object example

```json
{
  "template": "auto",
  "productCostPercent": 0,
  "shiftStart": "09:30",
  "shiftEnd": "18:30",
  "graceMinutes": 10,
  "weeklyOff": "0"
}
```

# Actor output Schema

## `report` (type: `string`):

The one-file HTML report: KPI cards, charts, findings and tables. Opens in any browser and can be emailed.

## `kpis` (type: `string`):

One item per KPI and finding, plus a summary item.

## `output` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("vpcapps/csv-to-dashboard-report").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("vpcapps/csv-to-dashboard-report").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call vpcapps/csv-to-dashboard-report --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vpcapps/csv-to-dashboard-report"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XELobJVevWPRb12By/builds/FT6Rsio61b0QvSUjk/openapi.json
