Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 781 Bytes

format.md

File metadata and controls

17 lines (13 loc) · 781 Bytes

Data Format

In most cases, data is considered as an array ([]). Multiple series of data can be represented as an array of arrays:

    [ 
        [ {key: 1, val: 2}, {key: 1: val: 1}, {key: 1, val: 5} ], 
        [ {key: 2, val: 4}, {key: 2, val: 5}, {key: 2, val: 7} ],
        // ...
    ]

Data for a Metric Component could be represented as [1234] where 1234 is the value passed to the mertric.

Note that in most places we assume that single series and even single scalar values will be represented within an array.

This is not a hard and fast rule - components define their own data formats, but dataHandlers will make some assumptions about data, so it is good to follow these conventions.