Index: Core/Components/src/Core.Components.OxyPlot/Core.Components.OxyPlot.csproj
===================================================================
diff -u -rb289035f9dc849df937a2d1049da17b28c689e02 -r913c61b285d09c32728540f4380296ea6a5d08be
--- Core/Components/src/Core.Components.OxyPlot/Core.Components.OxyPlot.csproj (.../Core.Components.OxyPlot.csproj) (revision b289035f9dc849df937a2d1049da17b28c689e02)
+++ Core/Components/src/Core.Components.OxyPlot/Core.Components.OxyPlot.csproj (.../Core.Components.OxyPlot.csproj) (revision 913c61b285d09c32728540f4380296ea6a5d08be)
@@ -60,7 +60,7 @@
-
+
Index: Core/Components/src/Core.Components.OxyPlot/DataSeries/Chart/IChartDataSeries.cs
===================================================================
diff -u
--- Core/Components/src/Core.Components.OxyPlot/DataSeries/Chart/IChartDataSeries.cs (revision 0)
+++ Core/Components/src/Core.Components.OxyPlot/DataSeries/Chart/IChartDataSeries.cs (revision 913c61b285d09c32728540f4380296ea6a5d08be)
@@ -0,0 +1,34 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+namespace Core.Components.OxyPlot.DataSeries.Chart
+{
+ ///
+ /// Interface for chart data series.
+ ///
+ public interface IChartDataSeries
+ {
+ ///
+ /// Updates the chart data series.
+ ///
+ void Update();
+ }
+}
\ No newline at end of file
Fisheye: Tag 913c61b285d09c32728540f4380296ea6a5d08be refers to a dead (removed) revision in file `Core/Components/src/Core.Components.OxyPlot/DataSeries/IChartDataSeries.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Core/Components/src/Core.Components.OxyPlot/DataSeries/Stack/RowChartDataSeries.cs
===================================================================
diff -u -rb289035f9dc849df937a2d1049da17b28c689e02 -r913c61b285d09c32728540f4380296ea6a5d08be
--- Core/Components/src/Core.Components.OxyPlot/DataSeries/Stack/RowChartDataSeries.cs (.../RowChartDataSeries.cs) (revision b289035f9dc849df937a2d1049da17b28c689e02)
+++ Core/Components/src/Core.Components.OxyPlot/DataSeries/Stack/RowChartDataSeries.cs (.../RowChartDataSeries.cs) (revision 913c61b285d09c32728540f4380296ea6a5d08be)
@@ -20,7 +20,6 @@
// All rights reserved.
using System;
-using System.Collections.Generic;
using Core.Components.OxyPlot.Converter.Stack;
using Core.Components.Stack.Data;
using OxyPlot.Series;
@@ -30,12 +29,8 @@
///
/// A based on and updated according to the wrapped .
///
- public class RowChartDataSeries : ColumnSeries, IChartDataSeries
+ public class RowChartDataSeries : ColumnSeries
{
- private readonly RowChartData rowChartData;
-
- private List drawnValues;
-
///
/// Creates a new instance of .
///
@@ -48,23 +43,10 @@
throw new ArgumentNullException(nameof(rowChartData));
}
- this.rowChartData = rowChartData;
-
IsStacked = true;
StrokeThickness = 1;
-
- Update();
- }
-
- public void Update()
- {
- if (!ReferenceEquals(rowChartData.Values, drawnValues))
- {
- RowChartDataConverter.ConvertSeriesData(rowChartData, this);
-
- drawnValues = rowChartData.Values;
- }
-
+
+ RowChartDataConverter.ConvertSeriesData(rowChartData, this);
RowChartDataConverter.ConvertSeriesProperties(rowChartData, this);
}
}
Index: Core/Components/test/Core.Components.OxyPlot.Test/DataSeries/Stack/RowChartDataSeriesTest.cs
===================================================================
diff -u -rb289035f9dc849df937a2d1049da17b28c689e02 -r913c61b285d09c32728540f4380296ea6a5d08be
--- Core/Components/test/Core.Components.OxyPlot.Test/DataSeries/Stack/RowChartDataSeriesTest.cs (.../RowChartDataSeriesTest.cs) (revision b289035f9dc849df937a2d1049da17b28c689e02)
+++ Core/Components/test/Core.Components.OxyPlot.Test/DataSeries/Stack/RowChartDataSeriesTest.cs (.../RowChartDataSeriesTest.cs) (revision 913c61b285d09c32728540f4380296ea6a5d08be)
@@ -23,7 +23,6 @@
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
-using Core.Components.OxyPlot.DataSeries;
using Core.Components.OxyPlot.DataSeries.Stack;
using Core.Components.Stack.Data;
using NUnit.Framework;
@@ -63,7 +62,6 @@
// Assert
Assert.IsInstanceOf(series);
- Assert.IsInstanceOf(series);
Assert.IsTrue(series.IsStacked);
Assert.AreEqual(1, series.StrokeThickness);
Assert.AreEqual(OxyColor.FromArgb(color.A, color.R, color.G, color.B), series.FillColor);