fusioncharts-dist
fusioncharts-dist copied to clipboard
TimeSeries chart not working with column type 'interval'
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 }`