diff --git a/lib/entity_widgets/history_chart/combined_history_chart.dart b/lib/entity_widgets/history_chart/combined_history_chart.dart index ac5ae8e..d352742 100644 --- a/lib/entity_widgets/history_chart/combined_history_chart.dart +++ b/lib/entity_widgets/history_chart/combined_history_chart.dart @@ -148,7 +148,7 @@ class _CombinedHistoryChartWidgetState extends State }); if ((_selectedId == -1) && (numericDataLists.isNotEmpty)) { - _selectedId = 0; + _selectedId = numericDataLists.length -1; } List> result = []; numericDataLists.forEach((attrName, dataList) { diff --git a/lib/entity_widgets/history_chart/numeric_state_history_chart.dart b/lib/entity_widgets/history_chart/numeric_state_history_chart.dart index 8e6aaab..d854206 100644 --- a/lib/entity_widgets/history_chart/numeric_state_history_chart.dart +++ b/lib/entity_widgets/history_chart/numeric_state_history_chart.dart @@ -103,7 +103,7 @@ class _NumericStateHistoryChartWidgetState extends State( diff --git a/lib/entity_widgets/history_chart/simple_state_history_chart.dart b/lib/entity_widgets/history_chart/simple_state_history_chart.dart index 3868fb7..1a7b20a 100644 --- a/lib/entity_widgets/history_chart/simple_state_history_chart.dart +++ b/lib/entity_widgets/history_chart/simple_state_history_chart.dart @@ -101,7 +101,7 @@ class _SimpleStateHistoryChartWidgetState extends State(