# CSV URL to dark line chart, PNG + SVG, HTML report

**Use case:** 

Points the Actor at a public CSV by URL, draws a time-series line chart in the dark theme as PNG and SVG, and builds a one-page HTML report around it. Replace the file URL with your own CSV, Excel, JSON or Google Sheet link.

## Input

```json
{
  "fileUrl": "https://raw.githubusercontent.com/plotly/datasets/master/2014_apple_stock.csv",
  "fileFormat": "auto",
  "data": [
    {
      "date": "2026-01-14",
      "region": "North",
      "category": "Electrical",
      "revenue": 1840,
      "units": 12
    },
    {
      "date": "2026-01-27",
      "region": "South",
      "category": "Plumbing",
      "revenue": 960,
      "units": 7
    },
    {
      "date": "2026-02-03",
      "region": "North",
      "category": "Electrical",
      "revenue": 2210,
      "units": 15
    },
    {
      "date": "2026-02-18",
      "region": "East",
      "category": "Roofing",
      "revenue": 3120,
      "units": 4
    },
    {
      "date": "2026-02-25",
      "region": "South",
      "category": "Electrical",
      "revenue": 1275,
      "units": 9
    },
    {
      "date": "2026-03-06",
      "region": "West",
      "category": "Plumbing",
      "revenue": 1430,
      "units": 11
    },
    {
      "date": "2026-03-19",
      "region": "North",
      "category": "Roofing",
      "revenue": 2890,
      "units": 3
    },
    {
      "date": "2026-03-28",
      "region": "East",
      "category": "Electrical",
      "revenue": 1990,
      "units": 13
    },
    {
      "date": "2026-04-09",
      "region": "West",
      "category": "Electrical",
      "revenue": 2450,
      "units": 16
    },
    {
      "date": "2026-04-21",
      "region": "South",
      "category": "Roofing",
      "revenue": 3560,
      "units": 5
    },
    {
      "date": "2026-05-02",
      "region": "North",
      "category": "Plumbing",
      "revenue": 1120,
      "units": 8
    },
    {
      "date": "2026-05-17",
      "region": "East",
      "category": "Electrical",
      "revenue": 2730,
      "units": 18
    }
  ],
  "maxRows": 5000,
  "charts": [
    {
      "type": "area",
      "title": "Apple share price, weekly average 2014",
      "x": "AAPL_x",
      "y": "AAPL_y",
      "aggregate": "mean",
      "timeUnit": "week",
      "yFormat": "$,.0f"
    },
    {
      "type": "horizontalBar",
      "title": "Highest close by month",
      "x": "AAPL_x",
      "y": "AAPL_y",
      "aggregate": "max",
      "timeUnit": "month",
      "yFormat": "$,.0f"
    }
  ],
  "width": 800,
  "height": 450,
  "theme": "dark",
  "imageFormats": [
    "svg"
  ],
  "scale": 2,
  "generateReport": true,
  "reportTitle": "Apple stock, 2014",
  "reportSubtitle": "Test run: file URL, dark theme, HTML only, AI summary, webhook",
  "reportFormats": [
    "html"
  ],
  "tableRows": 8,
  "aiSummary": false,
  "aiModel": "anthropic/claude-haiku-4.5"
}
```

## Output

```json
{
  "kind": {
    "label": "Kind",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "chartType": {
    "label": "Chart",
    "format": "text"
  },
  "x": {
    "label": "X field",
    "format": "text"
  },
  "y": {
    "label": "Y field",
    "format": "text"
  },
  "aggregate": {
    "label": "Aggregate",
    "format": "text"
  },
  "rowsUsed": {
    "label": "Rows used",
    "format": "number"
  },
  "categories": {
    "label": "Categories",
    "format": "number"
  },
  "pngUrl": {
    "label": "PNG",
    "format": "link"
  },
  "svgUrl": {
    "label": "SVG",
    "format": "link"
  },
  "pdfUrl": {
    "label": "PDF report",
    "format": "link"
  },
  "htmlUrl": {
    "label": "HTML report",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Dataset Charts & Report (Chart Images + PDF from Any Data)](https://apify.com/nerolabs/dataset-charts-report.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/nerolabs/dataset-charts-report.md) to learn more, explore other use cases, and run it yourself.


## 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.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/nerolabs/dataset-charts-report.md

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
