// View Invalidation Queue
c3Grid(InvalidationQueue.countAll())
// View Status of import
c3Grid(SourceFile.get("MySourceCollection_MySourceFile.csv").sourceStatus())
// Trigger normalization via a header Type
MyTimeSeriesHeaderType.refreshNormalization({force: true, async: true})
// View normalized time series data
var normalizedData = NormalizedTimeseriesPersister.getId(
id = MyHeaderType.normalizedTimeseriesKey(
headerId = "MyHeaderID",
tsField = "MyQuantityField"
),
spec = NormalizedTimeseriesGetSpec.make({
timeRange: NormalizedTimeseriesRange.make({
start: "2015-01-01",
end: "2019-06-01"
})
})
);
c3Grid(normalizedData.values)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter