Bluelight CSV wird nun gelesen

This commit is contained in:
HuskyTeufel
2019-09-25 15:49:35 +02:00
parent 0c733eafdf
commit b47bf96cf7
4 changed files with 27 additions and 10 deletions

View File

@@ -47,6 +47,8 @@ namespace BerichtGen
mychart.Points.Add(counter, pars.Temperatur);
else if (type.Equals("Druck"))
mychart.Points.Add(counter, pars.Druck);
else if (type.Equals("Speed"))
mychart.Points.Add(counter, pars.Geschwindigkeit);
else
throw new Exception("Kein gültiger Aufruf");
counter++;
@@ -63,6 +65,10 @@ namespace BerichtGen
case "Druck":
axis.Title = "[bar]";
break;
case "Speed":
axis.Title = "[cm]";
break;
}
axis.TitleFont = new Font("Segeo UI", 14F);
@@ -95,10 +101,16 @@ namespace BerichtGen
if (tempChart == null) return false;
else
tempChart.SaveImage(Path.Combine(destinationPath, "linerGraph_temp.jpg"));
ChartControl druckChart = getGraph(struktures, "Druck");
if (druckChart == null) return false;
else
druckChart.SaveImage(Path.Combine(destinationPath, "linerGraph_druck.jpg"));
ChartControl speedChart = getGraph(struktures, "Speed");
if (speedChart == null) return false;
else
speedChart.SaveImage(Path.Combine(destinationPath, "linerGraph_speed.jpg"));
return true;
}
}