temperature chart and table alignments
This commit is contained in:
@@ -65,7 +65,14 @@ export const defaultVariablePrefs: VariablePrefs = {
|
||||
wind: true,
|
||||
humidity: true,
|
||||
clouds: true,
|
||||
precipitation: true
|
||||
precipitation: true,
|
||||
// extra rows, off by default
|
||||
dew_point: false,
|
||||
gusts: false,
|
||||
pressure: false,
|
||||
uv: false,
|
||||
visibility: false,
|
||||
snowfall: false
|
||||
},
|
||||
charts: {
|
||||
temperature: true,
|
||||
@@ -79,6 +86,9 @@ export const defaultVariablePrefs: VariablePrefs = {
|
||||
|
||||
export const storedVariablePrefs = persisted<VariablePrefs>('variable_prefs', defaultVariablePrefs);
|
||||
|
||||
/** Hourly table interval: 3-hourly (default) or 1-hourly. */
|
||||
export const storedHourlyInterval = persisted<1 | 3>('hourly_interval', 3);
|
||||
|
||||
/**
|
||||
* Meteogram layout: an ordered list of chart panels, each holding an ordered
|
||||
* list of variable keys (see the chart variable registry). Users drag
|
||||
@@ -90,9 +100,9 @@ export interface ChartPanel {
|
||||
}
|
||||
|
||||
export const defaultChartLayout: ChartPanel[] = [
|
||||
{ id: 'panel-1', variables: ['weather_icons', 'temperature', 'cloud_cover'] },
|
||||
{ id: 'panel-2', variables: ['precipitation', 'precipitation_probability'] },
|
||||
{ id: 'panel-3', variables: ['wind', 'wind_direction', 'humidity'] }
|
||||
{ id: 'panel-1', variables: ['temperature', 'weather_icons'] },
|
||||
{ id: 'panel-2', variables: ['precipitation', 'precipitation_probability', 'cloud_cover'] },
|
||||
{ id: 'panel-3', variables: ['wind', 'wind_gusts', 'wind_direction'] }
|
||||
];
|
||||
|
||||
export const storedChartLayout = persisted<ChartPanel[]>('chart_layout_v1', defaultChartLayout);
|
||||
|
||||
Reference in New Issue
Block a user