public PieSourceData(List <float> yValues) { if (whiteText == null) { whiteText = new CPTMutableTextStyle(); whiteText.Color = CPTColor.WhiteColor; } data = yValues; }
public BarSourceData(List <float> yValues) { if (whiteText == null) { whiteText = new CPTMutableTextStyle(); whiteText.Color = CPTColor.WhiteColor; } maxVal = yValues.Max(); minVal = yValues.Min(); data = new List <PointF> (); float xPos = 1f; foreach (float yVal in yValues) { data.Add(new PointF(xPos * 0.5f, yVal)); xPos++; } }
public BarSourceData(List<float> yValues) { if (whiteText == null) { whiteText = new CPTMutableTextStyle (); whiteText.Color = CPTColor.WhiteColor; } maxVal = yValues.Max(); minVal = yValues.Min(); data = new List<PointF> (); float xPos = 1f; foreach (float yVal in yValues) { data.Add (new PointF (xPos * 0.5f, yVal)); xPos++; } }
public PieSourceData(List<float> yValues) { if (whiteText == null) { whiteText = new CPTMutableTextStyle (); whiteText.Color = CPTColor.WhiteColor; } data = yValues; }