public void AddRow() { ChartGridItem c = new ChartGridItem(); c.Chart = new CartesianChart(); c.Chart.Name = "Chart" + SeriesList.Count; c.Title = "Series " + chartCounter; c.DataSeries = GetDataSeries(); c.DragSelectionBorder = new System.Windows.Controls.Border(); c.DragSelectionCanvas = new System.Windows.Controls.Canvas(); Data.Add(c); }
public void DrawVars() { foreach (var item in SeriesList) { ChartGridItem c = new ChartGridItem(); c.Chart = new CartesianChart(); c.Chart.Name = "Chart" + chartCounter; c.Title = "Series " + chartCounter; c.DataSeries = GetDataSeries(); c.DragSelectionBorder = new System.Windows.Controls.Border(); c.DragSelectionCanvas = new System.Windows.Controls.Canvas(); Data.Add(c); chartCounter++; } }