apps/live-weather/src/app/shared/place-hourly-forecast/place-hourly-forecast.component.ts
selector | weather-base-place-hourly-forecast |
styleUrls | ./place-hourly-forecast.component.scss |
templateUrl | ./place-hourly-forecast.component.html |
Properties |
Methods |
Inputs |
place | |
Type : IPlace
|
|
weather | |
Type : IOpenWeatherReport
|
|
Public formatWeatherReportForHourlyData | ||||||||
formatWeatherReportForHourlyData(weatherReport: IOpenWeatherReport)
|
||||||||
Format weather report into chart specific data structure
Parameters :
Returns :
IChart
chart data |
ngOnChanges | ||||||
ngOnChanges(changes: SimpleChanges)
|
||||||
Parameters :
Returns :
void
|
colorScheme |
Type : object
|
Default value : {
domain: ['#5AA454'],
}
|
weatherData |
Type : IChart[]
|
Default value : []
|
xAxisLabel |
Type : string
|
Default value : 'Time'
|
yAxisLabel |
Type : string
|
Default value : 'Temperature in (°C)'
|
./place-hourly-forecast.component.scss