Skip to content
Snippets Groups Projects
Commit ce691ef3 authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Merge branch 'master' into 'master'

Round wind speed and temp in chart to 1 dezimal

See merge request wetterstation/frontend!35
parents e55ff2f0 5c7c57f6
No related branches found
No related tags found
No related merge requests found
......@@ -195,10 +195,10 @@ namespace Wetterstation
if (result[4] == null) windSpeed = 0;
else windSpeed = result[4];
cartesianChart1.Series[0].Values.Add(temp);
cartesianChart1.Series[0].Values.Add(Math.Round(temp, 1));
cartesianChart1.Series[1].Values.Add(humidity);
cartesianChart1.Series[2].Values.Add(pressure);
cartesianChart1.Series[3].Values.Add(windSpeed);
cartesianChart1.Series[3].Values.Add(Math.Round(windSpeed, 1));
}
graphLastTimestamp = weatherData["results"][0]["series"][0]["values"][96][0].ToString();
}
......@@ -220,10 +220,10 @@ namespace Wetterstation
if (weatherData["results"][0]["series"][0]["values"][96][4] == null) windSpeed = 0;
else windSpeed = weatherData["results"][0]["series"][0]["values"][96][4];
cartesianChart1.Series[0].Values.Add(temp);
cartesianChart1.Series[0].Values.Add(Math.Round(temp, 1));
cartesianChart1.Series[1].Values.Add(humidity);
cartesianChart1.Series[2].Values.Add(pressure);
cartesianChart1.Series[3].Values.Add(windSpeed);
cartesianChart1.Series[3].Values.Add(Math.Round(windSpeed, 1));
graphLastTimestamp = weatherData["results"][0]["series"][0]["values"][96][0].ToString();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment