Source code

Download source archive ↓

spec.json

1{
2  "class": "PieChart",
3  "description": "Grouped pie-chart data as records, not an image. Params: dimension,indicator,indicatorOption COUNT/SUM/AVG/MAX/MIN. SQLite scalar aggregates, bounded 128 MiB. Output indicator_ACTION column.",
4  "params": {
5    "dimension": "station_id",
6    "indicator": "temperature",
7    "indicatorOption": "AVG"
8  },
9  "inputs": {
10    "source": {
11      "representations": [
12        "records"
13      ],
14      "formats": []
15    }
16  },
17  "outputs": {
18    "result": {
19      "representations": [
20        "records"
21      ],
22      "formats": [
23        "arrow"
24      ]
25    }
26  },
27  "mode": "bounded_materialization",
28  "test": "pie_chart",
29  "dialect": "SQLite",
30  "uses_sql": true,
31  "parameters": {
32    "type": "object",
33    "properties": {
34      "dimension": {
35        "type": "string",
36        "description": "dimension parameter. Grouped pie-chart data as records, not an image. Params: dimension,indicator,indicatorOption COUNT/SUM/AVG/MAX/MIN. SQLite scalar aggregates, bounded 128 MiB. Output indicator_ACTION column."
37      },
38      "indicator": {
39        "type": "string",
40        "description": "indicator parameter. Grouped pie-chart data as records, not an image. Params: dimension,indicator,indicatorOption COUNT/SUM/AVG/MAX/MIN. SQLite scalar aggregates, bounded 128 MiB. Output indicator_ACTION column."
41      },
42      "indicatorOption": {
43        "type": "string",
44        "description": "indicatorOption parameter. Grouped pie-chart data as records, not an image. Params: dimension,indicator,indicatorOption COUNT/SUM/AVG/MAX/MIN. SQLite scalar aggregates, bounded 128 MiB. Output indicator_ACTION column."
45      }
46    },
47    "required": [
48      "dimension",
49      "indicator",
50      "indicatorOption"
51    ],
52    "additionalProperties": false
53  },
54  "icon": {
55    "path": "M3 5h18v14H3zM3 10h18M3 14h18M9 5v14"
56  }
57}