fusioncharts-dist icon indicating copy to clipboard operation
fusioncharts-dist copied to clipboard

TimeSeries chart not working with column type 'interval'

Open JSProto opened this issue 4 years ago • 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 }`

JSProto avatar Jan 13 '21 11:01 JSProto