public string getSeriesRotated90(int seriesIndex, bool IncludeRemaining) { var thisList = seriesRaw.ElementAtOrDefault(seriesIndex); if (thisList == null) { return(string.Empty); } var NewList = new List <string>(); foreach (var itm in thisList) { if (itm.Flags == chartDataItem.chartDataItemFlags.None | IncludeRemaining) { var TmpList = new List <string> { itm.ValueJsonObject }; NewList.Add(ChartLogic.GetArrayString(TmpList, true)); } } return(ChartLogic.stringifySeries(NewList)); //[248.15,20.00] //[[3],[5]] }
public string getLabels(bool includeRemaining) { var o = new List <string>(); foreach (var itm in labelsRaw) { if ((itm.Flags == chartDataItem.chartDataItemFlags.IsRemainder && includeRemaining) | (itm.Flags == chartDataItem.chartDataItemFlags.None)) { o.Add(itm.ValueJsonObject); } } return(ChartLogic.GetArrayString(o, true)); }
//public functions public string getLegend(bool includeRemaining) { if (legendsRaw == null) { return(string.Empty); } var o = new List <string>(); foreach (var itm in legendsRaw) { if ((itm.Flags == chartDataItem.chartDataItemFlags.IsRemainder && includeRemaining) | (itm.Flags == chartDataItem.chartDataItemFlags.None)) { o.Add(itm.ValueJsonObject); } } return(ChartLogic.GetArrayString(o, true)); }
public string getSeries(bool includeRemaining) { var a = new List <string>(); foreach (var List in seriesRaw) { var o = new List <string>(); foreach (var itm in List) { if ((itm.Flags == chartDataItem.chartDataItemFlags.IsRemainder && includeRemaining) | (itm.Flags == chartDataItem.chartDataItemFlags.None)) { o.Add(itm.ValueJsonObject); } } a.Add(ChartLogic.GetArrayString(o, false)); } return(a.Count() > 1 ? ChartLogic.stringifySeries(a) : a.ElementAt(0)); }