public void AutoSeriesColors() { var testguy = new CartesianChart(); testguy.MockIt(new CoreSize(200, 200)); var seriesCollection = new SeriesCollection(); for (var i = 0; i < 100; i++) { seriesCollection.Add(new LineSeries { Values = new ChartValues <double> { 1, 2, 3 } }); } testguy.Series = seriesCollection; }
public void SharingSeries() { var aGuy = new CartesianChart(); var bGuy = new CartesianChart(); aGuy.MockIt(new CoreSize(200, 200)); bGuy.MockIt(new CoreSize(200, 200)); var aSeries = new LineSeries(); aGuy.Series.Add(aSeries); aGuy.Update(); Debug.WriteLine(aGuy.Series.Count); bGuy.Series.Add(aSeries); bGuy.Update(); Debug.WriteLine(aGuy.Series.Count); Debug.WriteLine(bGuy.Series.Count); }