˅
This commit is contained in:
@@ -101,7 +101,7 @@ namespace PlantBox.Client.Forms.Plant
|
||||
uint count;
|
||||
float step;
|
||||
string labelFormat;
|
||||
string valueSpecifier;
|
||||
string valueFormat;
|
||||
|
||||
switch (viewModel.HistoricDuration.Interval)
|
||||
{
|
||||
@@ -148,15 +148,15 @@ namespace PlantBox.Client.Forms.Plant
|
||||
{
|
||||
case CaptorType.Humidity:
|
||||
values = historicEntries.Humidities;
|
||||
valueSpecifier = "{0:F1} %";
|
||||
valueFormat = "{0:F1} %";
|
||||
break;
|
||||
case CaptorType.Luminosity:
|
||||
values = historicEntries.Luminosities;
|
||||
valueSpecifier = "{0:F0} lux";
|
||||
valueFormat = "{0:F0} lux";
|
||||
break;
|
||||
case CaptorType.Temperature:
|
||||
values = historicEntries.Temperatures;
|
||||
valueSpecifier = "{0:F1} °C";
|
||||
valueFormat = "{0:F1} °C";
|
||||
break;
|
||||
default:
|
||||
throw new InvalidOperationException();
|
||||
@@ -174,7 +174,7 @@ namespace PlantBox.Client.Forms.Plant
|
||||
entries[index] = new Entry((float)value.Value)
|
||||
{
|
||||
Label = value.Date.ToString(labelFormat),
|
||||
ValueLabel = string.Format(valueSpecifier, value.Value),
|
||||
ValueLabel = string.Format(valueFormat, value.Value),
|
||||
Color = colors[index]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user