private static string GetSeries(ChartInstance Chart) { string Output = string.Empty; if (Chart.GetIndices().Count == 0) { return(Output); } foreach (int Index in Chart.GetIndices()) { Output = Output += Index + ","; } return(Output.Substring(0, Output.Length - 1)); // Trim the last ',' }
private static void AddSeries(string Raw, ChartInstance Chart) { if (string.IsNullOrWhiteSpace(Raw)) { return; } string[] Parts = Raw.Split(','); if (Parts == null || Parts.Length == 0) { return; } foreach (string Part in Parts) { if (int.TryParse(Part, out int SeriesID)) { Chart.AddByIndex(SeriesID); } } }
public ChartManager(CartesianChart ChartLeft, CartesianChart ChartRight, ListBox Chooser) { this.Left = new ChartInstance(ChartLeft, Chooser); this.Right = new ChartInstance(ChartRight, Chooser); }