widgets/weather/weather_chart_helpers library
Helper functions for weather chart data type handling.
Copyright (C) 2026, Software Innovation Institute, ANU.
Licensed under the GNU General Public License, Version 3 (the "License").
License: https://opensource.org/license/gpl-3-0.
Functions
-
getDailyData(
String dataType, HourlyWeatherData data) → Map< DateTime, double> - Get daily data based on data type.
-
getDataIcon(
String dataType) → IconData - Get data icon based on data type.
-
getDataRange(
String dataType, HourlyWeatherData data) → (double, double) - Get data range based on data type. For precipitation, returns the range of daily totals, not hourly values.
-
getDataTitle(
String dataType) → String - Get data title based on data type.
-
getDataUnit(
String dataType) → String - Get data unit based on data type.
-
getValueColor(
double value, double min, double max) → Color - Get color based on value position in range.