예제 #1
0
        public DataVisualization()
        {
            DataInteractionV2 div2 = new DataInteractionV2();

            //Toast.DisplayText(div2.showCurrWeekNum().ToString());
            KeyValuePair <string, double>[] show  = div2.readWeeklyTagPercentage(DateTime.Now.Year, div2.showCurrWeekNum());
            CircleProgressBarSurfaceItem    first = new CircleProgressBarSurfaceItem()
            {
                Value               = 0.5,
                BarLineWidth        = 20,
                BackgroundLineWidth = 20,
                BarColor            = Color.Crimson,
                BackgroundColor     = Color.Transparent,
                BarRadius           = 60,
            };
            CircleProgressBarSurfaceItem second = new CircleProgressBarSurfaceItem()
            {
                Value               = show[1].Value,
                BarLineWidth        = 20,
                BackgroundLineWidth = 20,
                BarColor            = Color.Magenta,
                BackgroundColor     = Color.Transparent,
                BarRadius           = 80,
            };

            CircleSurfaceItems.Add(first);
            CircleSurfaceItems.Add(second);
        }
예제 #2
0
        private void getWeek()
        {
            DataInteractionV2 div2 = new DataInteractionV2();

            //Toast.DisplayText(div2.readWeeklySum(2020, 24).ToString());
            //Toast.DisplayText(div2.showCurrWeekNum().ToString());
            div2.readWeeklyTagPercentage(2020, 24);
            //CircleScrollView csv = new CircleScrollView();
            //csv.Content = div2.readWeeklyTagPercentage(2020, 25);
        }