Beispiel #1
0
        public PieSourceData(List <float> yValues)
        {
            if (whiteText == null)
            {
                whiteText       = new CPTMutableTextStyle();
                whiteText.Color = CPTColor.WhiteColor;
            }

            data = yValues;
        }
Beispiel #2
0
        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++;
            }
        }
Beispiel #4
0
        public PieSourceData(List<float> yValues)
        {
            if (whiteText == null) {
                whiteText = new CPTMutableTextStyle ();
                whiteText.Color = CPTColor.WhiteColor;
            }

            data = yValues;
        }