WeatherBlox - Normals
NormalsObject
aeris.wxblox.views.NormalsData Usage
/normals (1)
The Normals component displays the monthly climate normals for a single location.

Examples
Display the climate normals for Minneapolis, MN for May:
const view = new aeris.wxblox.views.Normals('#wxblox', {
range: {
from: '5/1/2017'
}
});
view.load({
p: 'minneapolis,mn'
});Display the climate normals for Houston, TX for the month of December:
const view = new aeris.wxblox.views.Normals('#wxblox', {
range: {
from: '12/1/2017'
}
});
view.load({
p: 'houston,tx'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
range.from | Type: string () | |
range.to | Type: string () | |
enabled | Type: boolean () | |
metric | Type: boolean () | |
renderNoData | Type: boolean () | |
request | Type: object () | |
Methods
The following methods are supported by instances of this view:
rendered()show()hide()params()setUnits(:number)units()enabled()setMetric(:boolean)load(:object)refresh()isMetric()Events
The following events are triggered by instances of this view:
renderrender:beforerender:afterload:startload:doneload:errorchange:units