Skip to main content

Resource data construction

Overview

[
{
'date': '2022-03-01',
'data': [{
'time': '08:00',
'count': '1'
}, {
'time': '08:30',
'count': '2'
}]
},
{
'date': '2022-03-02',
'data': [{
'time': '07:00',
'count': '1'
}, {
'time': '08:00',
'count': '2'
}]
},
...
]

Details

Root array

The root array length must be rather than the number of displayDateCount.

Inside Objects

KeyTypeConstruction
dateStringThe format is 'YYYY-MM-DD'
dataArrayInner data type must to be Object
time is required.
You can add some values if you want.