Skip to main content

system.kanoa.event.buildProductionBarChartByDay(data)

Takes the production event data returned by the system.kanoa.event.getAssetProductionEvents() functions and splits it by day.


Parameters

data pyDataset


Returns

productionData pyDataset


Example

startDate = system.date.parse("2025-11-01 00:00:00")
endDate = system.date.parse("2025-11-05 00:00:00")
data = system.kanoa.event.getAssetProductionEvents({'assetId': 510, 'startDate': startDate, 'endDate': endDate})
productionData = buildProductionBarChartByDay(data)