diff --git a/data/contract_docs/contract.md b/data/contract_docs/contract.md index 4243d841a..db7059913 100644 --- a/data/contract_docs/contract.md +++ b/data/contract_docs/contract.md @@ -14,6 +14,21 @@ There are logical **_kinds_** (like Time Series Data, Numeric, Histogram, etc), A **_data type_** definition or declaration in this framework includes both a kind and format. For example, "TimeSeriesWide" is: kind: "Time Series", format: "Wide". +* [Time series](./timeseries.md) + * [Wide](./timeseries.md#time-series-wide-format-timeserieswide) + * [Long](./timeseries.md#time-series-long-format-timeserieslong-sql-like) + * [Multi](./timeseries.md#time-series-multi-format-timeseriesmulti) +* [Numeric](./numeric.md) + * [Wide](./numeric.md#numeric-wide-format-numericwide) + * [Multi](./numeric.md#numeric-multi-format-numericmulti) + * [Long](./numeric.md#numeric-many-format-numericlong) +* [Heatmap](./heatmap.md) + * [Buckets](./heatmap.md#heatmap-buckets-heatmapbuckets) + * [Scanlines](./heatmap.md#heatmap-scanlines-heatmapscanlines) + * [Sparse](./heatmap.md#heatmap-sparse-heatmapsparse) + + + ## Dimensional Set Based Kinds Within a data type (kind+format), there can be multiple **_items_** of data that are uniquely identified. This forms a **_set_** of data items. For example, in the numeric kind there can be a set of numbers, or, in the time series kind, a set of time series-es :-). diff --git a/data/contract_docs/heatmap.md b/data/contract_docs/heatmap.md new file mode 100644 index 000000000..8f55365db --- /dev/null +++ b/data/contract_docs/heatmap.md @@ -0,0 +1,232 @@ +# Heatmap + +Status: EARLY Draft/Proposal + +Heatmaps are used to show the magnitude of a phenomenon as color in two dimensions. The variation in color +may give visual cues about how the phenomenon is clustered or varies over space. + + +## Heatmap buckets (HeatmapBuckets) + +The first field represents the X axis, the rest of the fields indicate rows in the heatmap. +The true numeric range of each bucket can be indicated using an "le" label. When absent, +The field display is used for the bucket label. + +Example: + +
+ Type: Time
+ + Name: Time + + |
+
+ Type: Number
+ + Name: + ++ Labels: {"le": "10"} + + |
+
+ Type: Number
+ + Name: + ++ Labels: {"le": "20"} + + |
+
+ Type: Number
+ + Name: + ++ Labels: {"le": "+Inf"} + + |
+
1653416391000 | +6 | +7 | +8 | +
1653416391000 | +6 | +7 | +8 | +
1653416391000 | +6 | +7 | +8 | +
+ Type: Time
+ + Name: xMax|xMin|x + + |
+
+ Type: Number
+ + Name: yMax|yMin|y + + |
+
+ Type: Number
+ + Name: Count + + |
+
+ Type: Number
+ + Name: Total + + |
+
+ Type: Number
+ + Name: Speed + + |
+
1653416391000 | +100 | +1 | +1 | +1 | +
1653416391000 | +200 | +2 | +2 | +2 | +
1653416391000 | +300 | +3 | +3 | +3 | +
1653416392000 | +100 | +4 | +4 | +4 | +
1653416392000 | +200 | +5 | +5 | +5 | +
1653416392000 | +300 | +6 | +6 | +6 | +
+ Type: Time
+ + Name: xMin + + |
+
+ Type: Time
+ + Name: xMax + + |
+
+ Type: Number
+ + Name: yMin + + |
+
+ Type: Number
+ + Name: yMax + + |
+
+ Type: Number
+ + Name: Value + + |
+
1653416391000 | +1653416392000 | +100 | +200 | +1 | +
1653416392000 | +1653416393000 | +200 | +400 | +2 | +