Syncfusion geupdated
This commit is contained in:
@@ -18,7 +18,7 @@ namespace BerichtGen
|
||||
{
|
||||
private static ChartControl getGraph(List<UVcsvStrukture> input, string type)
|
||||
{
|
||||
Size size = new Size(600, 400);
|
||||
Size size = new Size(400, 300);
|
||||
|
||||
ChartControl chartControl = new ChartControl();
|
||||
chartControl.Size = size;
|
||||
@@ -47,7 +47,7 @@ namespace BerichtGen
|
||||
mychart.Points.Add(counter, pars.Temperatur);
|
||||
else if (type.Equals("Druck"))
|
||||
mychart.Points.Add(counter, pars.Druck);
|
||||
else if (type.Equals("Speed"))
|
||||
else if (type.Equals("Geschwindigkeit"))
|
||||
mychart.Points.Add(counter, pars.Geschwindigkeit);
|
||||
else
|
||||
throw new Exception("Kein gültiger Aufruf");
|
||||
@@ -66,7 +66,7 @@ namespace BerichtGen
|
||||
axis.Title = "[bar]";
|
||||
break;
|
||||
|
||||
case "Speed":
|
||||
case "Geschwindigkeit":
|
||||
axis.Title = "[cm]";
|
||||
break;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace BerichtGen
|
||||
/// <returns></returns>
|
||||
public static bool GetGraphics(List<UVcsvStrukture> struktures,string destinationPath)
|
||||
{
|
||||
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MTIwMjk0QDMxMzcyZTMyMmUzME9BaCs3SUNHQklVTE11ZTZnTGdQcmk2eU4xeWphZDdMYkUrbytOTTRveXc9");
|
||||
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MTUwNjM5QDMxMzcyZTMzMmUzMGRRZXRsZkhIYVc3dnJORUZOc2ZaZ1lIK25pdHc1QXR3U05zU1BlQzM3RFk9");
|
||||
|
||||
ChartControl tempChart = getGraph(struktures, "Temperatur");
|
||||
if (tempChart == null) return false;
|
||||
@@ -107,7 +107,7 @@ namespace BerichtGen
|
||||
else
|
||||
druckChart.SaveImage(Path.Combine(destinationPath, "linerGraph_druck.jpg"));
|
||||
|
||||
ChartControl speedChart = getGraph(struktures, "Speed");
|
||||
ChartControl speedChart = getGraph(struktures, "Geschwindigkeit");
|
||||
if (speedChart == null) return false;
|
||||
else
|
||||
speedChart.SaveImage(Path.Combine(destinationPath, "linerGraph_speed.jpg"));
|
||||
|
||||
Reference in New Issue
Block a user