(region to filter data by) (fetch the most up-to-date/stable data) (fetch data "as-of" a specific week) (fetch data lagged by a number of weeks)
(this option has no additional parameters)
(format: YYYYWW)
(a non-negative integer)
(authorization token; required for imputed data for non-participating states; in any case, the API will return data for regions and participating states)
(location to filter data by) (fetch the most up-to-date/stable data) (fetch data "as-of" a specific week) (fetch data lagged by a number of weeks)
(this option has no additional parameters)
(format: YYYYWW)
(a non-negative integer)
(location to filter data by)
(authorization token)
(location to filter data by)
(search query or topic ID)
(authorization token)
(location to filter data by)
(temporal resolution)
(article to filter data by)
(temporal resolution) (filter by hour of day, otherwise return sum of all counts)
(authorization token)
(location to filter data by)
(authorization token)
(location to filter data by)
(region to filter data by) (fetch the most up-to-date/stable data) (fetch data "as-of" a specific week) (fetch data lagged by a number of weeks)
(this option has no additional parameters)
(format: YYYYWW)
(a positive integer)
(location to filter data by)
(authorization token)
(data source from which signal is built)
(location to filter data by)
(location to filter data by)
(location to filter data by) (fetch the most up-to-date/stable data) (fetch data "as-of" a specific date)
(this option has no additional parameters)
(format: YYYYMMDD)
(upstream data source)
(delphi indicator name)
(geographic resolution)
(location, e.g. 'PA' or '42003')
Load from CSV File
(treat rows as columns and vice versa) (extract column names, then discard first row) (otherwise assume daily starting on 2000-01-01)
(for when multiple overlapping time series are in the same file; ex: FluView Regional data)
Add Custom Line
(short string)
(format is YYYY-MM-DD or YYYYWW) (any floating point number)
(format is YYYY-MM-DD or YYYYWW) (any floating point number)
Tip: you can make a vertical line by using the same date at both endpoints!
Create a new Dataset
Select Inputs
In the tree to the left, select (by checking) the datasets to start with. How many you select depends on the function you want to apply.
Open the developer console
In chrome, the keyboard shortcut is Ctrl+Shift+J
Call the function createDataset
The function accepts two parameters: a name for the output dataset, and a function to apply to the selected dataset(s).
Available Functions ("Kernels") Kernels.sum, Kernels.product, Kernels.average
Selected Datasets: 1 or more
Kernel Parameters: none
Action: Calculates the sum, product, or average of the selected datasets.
Kernels.iliplus
Selected Datasets: 2
Kernel Parameters: none
Action: Calculates the product, divided by 100, of the selected datasets. (Intended for 'wILI' and '%positive' datasets.)
Kernels.scale
Selected Datasets: 1
Kernel Parameters: scale
Action: Scales the selected dataset by the provided scale parameter.
Kernels.ratio
Selected Datasets: 2
Kernel Parameters: inverse (optional)
Action: Calculates the quotient of the selected datasets. (Flips numerator and denominator if inverse is true.)
Examples
Compute ILI+: createDataset('ILI+', Kernels.iliplus())
Scale GFT by 1/1000: createDataset('GFT/1000', Kernels.scale(0.001))
Take the average: createDataset('avg', Kernels.average())