Beispiel #1
0
        public EventCalendarChart(ChartView BaseChart)
        {
            calendar = new Steema.TeeChart.Styles.Calendar();

            BaseChart.Chart.Header.Text       = MyConvert.NumericMonthToString(calendar.Date.Month) + ", " + calendar.Date.Year.ToString();
            BaseChart.Chart.Header.TextAlign  = TextAlignment.End;
            BaseChart.Chart.Header.Visible    = false;
            BaseChart.Chart.Header.Font.Color = Color.FromRgb(70, 70, 70);
            BaseChart.Chart.Header.Text       = "EventCalendar";

            calendar.FillSampleValues();
            BaseChart.Chart.Series.Add(calendar);
            calendar.PreviousMonthButton.Visible = false;
            calendar.NextMonthButton.Visible     = false;
            calendar.Trailing.Color      = Color.FromRgb(200, 200, 200);
            calendar.Trailing.Font.Size  = 14;
            calendar.Today.Color         = Color.FromRgb(210, 210, 210);
            calendar.Today.Font.Color    = Color.Black;
            calendar.Today.Font.Size     = 14;
            calendar.WeekDays.Font.Size  = 16;
            calendar.WeekDays.Font.Color = Color.FromRgb(150, 150, 150);
            calendar.WeekDays.TextAlign  = TextAlignment.Start;
            calendar.WeekDays.Pen.Width  = 1;
            calendar.Days.Font.Size      = 14;
            calendar.Days.TextAlign      = TextAlignment.Start;
            calendar.WeekDays.Color      = Color.Transparent;
            calendar.Sunday.Color        = Color.Transparent;
            calendar.Sunday.Font.Size    = 14;
            calendar.Sunday.Font.Color   = Color.Black;
            calendar.Sunday.Pen.Width    = 1;
            calendar.Months.Visible      = false;

            BaseChart.Chart.ClickSeries += Chart_ClickSeries;
        }
Beispiel #2
0
        public BasicCalendarChart(ChartViewRender BaseChart, Label label)
        {
            calendar          = new Steema.TeeChart.Styles.Calendar();
            swipeGesture      = new SwipeGesture(label);
            labelHeader       = (label as LabelSwipe);
            labelHeader.Chart = BaseChart.Chart;
            this.BaseChart    = BaseChart;

            labelHeader.Text = MyConvert.NumericMonthToString(calendar.Date.Month) + ", " + calendar.Date.Year.ToString();
            BaseChart.Chart.Header.Font.Size = 25;
            labelHeader.TextColor            = Color.FromRgb(70, 70, 70);
            BaseChart.Chart.Header.Text      = "BasicCalendar";
            BaseChart.Chart.Header.Visible   = false;

            calendar.FillSampleValues();
            BaseChart.Chart.Series.Add(calendar);
            calendar.PreviousMonthButton.Visible = false;
            calendar.NextMonthButton.Visible     = false;
            calendar.Trailing.Color      = Color.FromRgb(200, 200, 200);
            calendar.Trailing.Font.Size  = 14;
            calendar.Today.Color         = Color.FromRgb(210, 210, 210);
            calendar.Today.Font.Color    = Color.Black;
            calendar.Today.Font.Size     = 14;
            calendar.WeekDays.Font.Size  = 16;
            calendar.WeekDays.Font.Color = Color.FromRgb(150, 150, 150);
            calendar.WeekDays.TextAlign  = TextAlignment.Start;
            calendar.WeekDays.Pen.Width  = 1;
            calendar.Days.Font.Size      = 14;
            calendar.Days.TextAlign      = TextAlignment.Start;
            calendar.WeekDays.Color      = Color.Transparent;
            calendar.Sunday.Color        = Color.Transparent;
            calendar.Sunday.Font.Size    = 14;
            calendar.Sunday.Font.Color   = Color.Black;
            calendar.Sunday.Pen.Width    = 0;
            calendar.Sunday.Pen.Visible  = false;
            calendar.Months.Visible      = false;

            //calendar.Active = true;

            BaseChart.Chart.ClickSeries += Chart_ClickSeries;

            BaseChart.Chart.Panning.Active = true;

            NextBackButtonsUpdate();
        }
Beispiel #3
0
        public SpecialDatesChart(ChartView BaseChart, Label label)
        {
            calendar       = new Steema.TeeChart.Styles.Calendar();
            this.BaseChart = BaseChart;
            labelHeader    = label as LabelSwipe;
            swipeGesture   = new Services.Gesture.Swipe.SwipeGesture(labelHeader);

            labelHeader.Text = DateTime.Today.ToShortDateString();

            BaseChart.Chart.Header.TextAlign = TextAlignment.End;
            BaseChart.Chart.Header.Visible   = false;
            labelHeader.TextColor            = Color.FromRgb(170, 100, 100);
            BaseChart.Chart.Header.Text      = "SpecialCalendar";

            BaseChart.Chart.SubHeader.Visible      = true;
            BaseChart.Chart.SubHeader.Text         = "Hola";
            BaseChart.Chart.SubHeader.Font.Size    = 15;
            BaseChart.Chart.SubHeader.Transparency = 100;

            calendar.FillSampleValues();
            BaseChart.Chart.Series.Add(calendar);
            calendar.PreviousMonthButton.Visible = false;
            calendar.NextMonthButton.Visible     = false;
            calendar.Trailing.Color      = Color.FromRgb(200, 200, 200);
            calendar.Trailing.Font.Size  = 14;
            calendar.Today.Color         = Color.FromRgb(255, 240, 240);
            calendar.Today.Font.Color    = Color.Black;
            calendar.Today.Font.Size     = 14;
            calendar.Today.BorderRound   = 90;
            calendar.WeekDays.Font.Size  = 15;
            calendar.WeekDays.Font.Color = Color.FromRgb(180, 100, 100);
            calendar.WeekDays.TextAlign  = TextAlignment.Start;
            calendar.WeekDays.Pen.Width  = 1;
            calendar.WeekDays.UpperCase  = true;
            calendar.Days.Font.Size      = 14;
            calendar.Days.TextAlign      = TextAlignment.Start;
            calendar.WeekDays.Color      = Color.FromRgb(250, 230, 230);
            calendar.Sunday.Color        = Color.Red;
            calendar.Sunday.Font.Size    = 16;
            calendar.Sunday.Font.Color   = Color.White;
            calendar.Sunday.ShapeStyle   = TextShapeStyle.Rectangle;
            //calendar.Sunday.Brush.Style = HatchStyle.DiagonalBrick;
            //calendar.Sunday.Brush.ForegroundColor = Color.Green;
            //calendar.Sunday.Brush.Color = Color.Red;
            //calendar.Sunday.Brush.Visible = true;
            //calendar.Sunday.Brush.Solid = false;
            calendar.Sunday.Color            = Color.FromRgb(235, 160, 160);
            calendar.Sunday.Gradient.Visible = false;
            calendar.Sunday.Pen.Visible      = false;
            calendar.Months.Visible          = false;
            calendar.Pen.Visible             = true;
            calendar.Pen.Width   = 3;
            calendar.Pen.Style   = DashStyle.DashDot;
            calendar.Pen.DashCap = PenLineCap.Round;
            calendar.Pen.Color   = Color.FromRgb(200, 130, 130);

            BaseChart.Chart.ClickSeries += Chart_ClickSeries;
            //calendar.BeforeDrawValues += calendar_BeforeDrawValues;

            NextBackButtonsUpdate();
        }