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

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

            data = yValues;
        }