TimeSeries chart not working with column type 'interval'
JSProto opened this issue · 0 comments
after the groupBy operation
column updatedAt is of type 'interval'
and TimeSeries chart not rendered
example:
` const schema = [
{
name: 'identifier',
type: 'string'
}, {
name: 'state',
type: 'string',
}, {
name: 'updatedAt',
type: 'date',
format: '%Q',
}
]
const groupByDateAndState = DataStore.Operators.groupBy(
[
{
column: 'updatedAt',
timeUnit: Utils.DatetimeUnits.Hour,
outputFormat: '%Y-%m-%d %H',
},
{
column: 'state',
outputAs: 'Status',
},
],
[
{
column: 'state',
operation: 'count',
outputAs: 'Count'
}
]
)
const config = { enableIndex: true, indexBy: 'updatedAt' }
const store = new DataStore()
store.createDataTable([], schema, config)
const table = store.getDataTable().query(groupByDateAndState)
const dataSource = {
chart: { ...},
data: table
}`