-
Notifications
You must be signed in to change notification settings - Fork 21
DatasetConfig
okay edited this page Apr 28, 2016
·
1 revision
Configure per dataset settings by clicking "Dataset settings" from the query view. (It's located in the left hand panel, towards the bottom)
Description of the dataset - will show up in various places in the UI to the users of this dataset.
Every query makes use of the time column to filter the start and end times of the data. Set the time column here.
In time series, the RSS Feed will display on the chart
Column formatters are used for custom display of values of a column. The column formatter is a small javascript snippet that fits the inside of the following function:
# notice that the field value is available by either the column name, or as 'value'
# in the below examples, we'll be using 'value'
formatValue(value, <column_name>) {
}
Some simple examples of working formatters:
# divide this column value by 1000
return parseInt(value / 1000, 10);
# display the column as a timestamp
return new Date(value).toString();
# change value into a link
return $("<a />").attr("href", "my_url/?s="+value).html(value)