TimeseriesForecast
Packaged forecast table with toolbar, table, and footer.
Wraps TimeseriesModelsProvider and TimeseriesProvider, then renders optional Toolbar, Builder + Chart, and Footer. lat and lon are required. Chart rows load from GET /api/platform/timeseries-point-forecast (or marine-timeseries-point-forecast when domain is marine) unless you pass blocks or getBlocks. Applies the ip-platform class for you.
import { TimeseriesForecast } from '@infoplaza/platform/timeseries'- Do not pass a models array. The catalog is loaded from the auth route using lat and lon.
- domain defaults to land. Set domain="marine" to use the marine timeseries catalog and point-forecast routes.
- showToolbar and showFooter default to true. Set both to false for a chart-only table.
- All TimeseriesProvider selection and display props are forwarded.
Required props
| Prop | Type | Default | Description |
|---|---|---|---|
| lat | number | — | Latitude of the forecast point. |
| lon | number | — | Longitude of the forecast point. |
Optional props
| Prop | Type | Default | Description |
|---|---|---|---|
| basePath | string | '/api/platform' | Auth handler mount path. Requests go to ${basePath}/timeseries-models (or marine-timeseries-models when domain is marine). |
| domain | 'land' | 'marine' | 'land' | Which PlatformAuth proxy to use. land hits timeseries-models and timeseries-point-forecast; marine hits the marine-timeseries-* routes. |
| showToolbar | boolean | true | Render the model / run pill toolbar. |
| showFooter | boolean | true | Render the element-group footer pills. |
| locale | string | 'en' | Date headers: 'en' | 'nl' | 'de' | 'it' | 'es' | 'fr'. Others fall back to en. |
| blocks | TimeseriesBlock[] | — | Host-owned rows. When defined, skips the point-forecast fetch. |
| getBlocks | (options) => TimeseriesBlock[] | — | Sync override used when blocks is omitted. Receives model, run, elementGroup, models, elementGroups. |
| showPalette | boolean | false | When true, cell background and text colors from the palette are applied. |
| headerFormat | [string, string] | — | Date header formats, e.g. ['EEEEEE d MMM', 'HH']. |
| scrollToCurrentTime | boolean | — | Scroll the table to the current hour on mount. |
| getIconSrc | (value: number | null) => string | null | — | Host-supplied ICON cell images. The package does not bundle weather icons. |
| className | string | — | Extra class on the root ip-platform wrapper. |
Example
<TimeseriesForecast
lat={52.3676}
lon={4.9041}
locale="en"
headerFormat={['EEEEEE d MMM', 'HH']}
scrollToCurrentTime
/>