Source code

Download source archive ↓

spec.json

1{
2  "class": "LineChart",
3  "description": "Produce grouped line-chart data as records, not an image. Params: abscissa, customizedProperties mapping columns to COUNT/SUM/AVG/MAX/MIN. SQLite aggregates, scalar columns, 128 MiB.",
4  "params": {
5    "abscissa": "station_id",
6    "customizedProperties": {
7      "temperature": "AVG"
8    }
9  },
10  "inputs": {
11    "source": {
12      "representations": [
13        "records"
14      ],
15      "formats": []
16    }
17  },
18  "outputs": {
19    "result": {
20      "representations": [
21        "records"
22      ],
23      "formats": [
24        "arrow"
25      ]
26    }
27  },
28  "mode": "bounded_materialization",
29  "test": "line_chart",
30  "dialect": "SQLite",
31  "uses_sql": true,
32  "parameters": {
33    "type": "object",
34    "properties": {
35      "abscissa": {
36        "type": "string",
37        "description": "abscissa parameter. Produce grouped line-chart data as records, not an image. Params: abscissa, customizedProperties mapping columns to COUNT/SUM/AVG/MAX/MIN. SQLite aggregates, scalar columns, 128 MiB."
38      },
39      "customizedProperties": {
40        "type": "object",
41        "properties": {},
42        "required": [],
43        "additionalProperties": {
44          "type": "string",
45          "enum": [
46            "AVG",
47            "SUM",
48            "MIN",
49            "MAX",
50            "COUNT"
51          ]
52        },
53        "description": "Column names mapped to aggregate functions."
54      }
55    },
56    "required": [
57      "abscissa",
58      "customizedProperties"
59    ],
60    "additionalProperties": false
61  },
62  "icon": {
63    "path": "M3 5h18v14H3zM3 10h18M3 14h18M9 5v14"
64  }
65}