95 more lines
+ "type": "array"
+ },
+ "combine": {
+ "description": "how rows that share an x, and a series, become one. \"sum\" also says the values add, which turns on totals and shares, and stacks columns",
+ "enum": [
+ "sum",
+ "mean",
+ "max",
+ "min"
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ }
+ ],
+ "description": "Leave it out to chart the tool result just before this call, as it is: do not type a result again. Where it holds several tables, x and y pick the one with those columns. Or the id of an earlier result, as a refusal lists them. Or the table itself, as records or as text, only for numbers no tool returned."
+ },
+ "form": {
+ "description": "if left out, a line over times and bars over names. line, columns and sparks need times in x: over names they are drawn as bars. columns stand on zero, one per day, month or other even step. sparks are a small row for each series, on one scale: for many series. bars are horizontal, one per category. share is the parts of a whole as one bar, what a pie shows: its values are summed",
+ "enum": [
+ "line",
+ "columns",
+ "bars",
+ "sparks",
+ "share"
+ ]
+ },
+ "log": {
+ "description": "a log scale, for lines. Values at or below zero are counted and left out",
+ "type": "boolean"
+ },
+ "marks": {
+ "description": "events on a chart over time, 12 at most: a rule and a label each. One outside the times drawn is said instead",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "description": "a time, spelled as in x",
+ "type": "string"
+ },
+ "label": {
+ "description": "short",
+ "type": "string"
+ }
+ },
+ "required": [
+ "at"
+ ],
+ "type": "object"
+ },
+ "maxItems": 12,
+ "type": "array"
+ },
+ "title": {
+ "description": "short",
+ "type": "string"
+ },
+ "top": {
+ "description": "how many to draw: 24 bars if left out and 40 at most, 8 lines at most, 24 sparks and 40 at most, 8 parts of a share beside one for the rest, 4 series of columns where they stack, else 3. The largest are kept, largest first, and the rest are counted",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "unit": {
+ "description": "ms, KB, %, $: what bare numbers are in. Values that carry a unit keep it",
+ "type": "string"
+ },
+ "x": {
+ "description": "the column along the chart: times, or the categories of bars",
+ "type": "string"
+ },
+ "y": {
+ "description": "the value columns. Lines share a plot where they have one unit and their largest values are within 10 times of each other, columns only where they stack. 3 plots at most, and the rest are named",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "zone": {
+ "description": "the zone that times are shown in, utc if left out. Times that name no zone are shown as written",
+ "enum": [
+ "utc",
+ "local"
+ ]
+ }
+ },
+ "type": "object"
+}