Add graph service
This commit is contained in:
@@ -103,7 +103,6 @@ namespace StructureHelperCommon.Models.Functions
|
||||
{
|
||||
double yValue = 0;
|
||||
current_xValue = xValue;
|
||||
Check();
|
||||
yValue = Math.Round(Expression.CalculateValue(new double[] { xValue }), 2);
|
||||
return yValue;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace StructureHelperCommon.Services
|
||||
}
|
||||
return _labels;
|
||||
}
|
||||
public SeriesCollection GetSeriesCollection()
|
||||
public LineSeries GetLineSeries()
|
||||
{
|
||||
foreach (GraphPoint point in GraphPoints)
|
||||
{
|
||||
@@ -41,9 +41,21 @@ namespace StructureHelperCommon.Services
|
||||
}
|
||||
_lineSeries.Values = _chartValues;
|
||||
_lineSeries.Stroke = new SolidColorBrush(_strokeColor);
|
||||
_lineSeries.Fill = Brushes.Transparent;
|
||||
return _lineSeries;
|
||||
}
|
||||
/*public SeriesCollection GetSeriesCollection()
|
||||
{
|
||||
foreach (GraphPoint point in GraphPoints)
|
||||
{
|
||||
_chartValues.Add(Math.Round(point.Y, 2));
|
||||
}
|
||||
_lineSeries.Values = _chartValues;
|
||||
_lineSeries.Stroke = new SolidColorBrush(_strokeColor);
|
||||
|
||||
_lineSeries.Fill = Brushes.Transparent;
|
||||
_seriesCollection.Add(_lineSeries);
|
||||
return _seriesCollection;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user