Exemplo n.º 1
0
        public PieSalesFiguresSubPage()
        {
            this.InitializeComponent();
            InitializeChart();

            pie1.Add(19, "Facebook");
            pie1.Add(14, "Tencent");
            pie1.Add(9, "WhatsApp");
            pie1.Add(5, "LinkedIn");
            pie1.Add(4, "Twitter");

            pie1.MarksPie.LegSize      = 20;
            pie1.Marks.FontSeriesColor = true;

            tChart2.Panel.Gradient.Visible = false;
            tChart3.Panel.Gradient.Visible = false;

            //numericGauges
            setGauge(numericGauge1);
            numericGauge1.Markers[1].Text = "Highest";
            numericGauge1.Markers[2].Text = "Facebook";

            setGauge(numericGauge2);
            numericGauge2.Markers[1].Text = "Lowest";
            numericGauge2.Markers[2].Text = "Twitter";
        }
Exemplo n.º 2
0
        public MultiplePiesSubPage()
        {
            this.InitializeComponent();
            InitializeChart();

            tChart1.Panel.Gradient.Visible = false;
            tChart2.Panel.Gradient.Visible = false;
            tChart3.Panel.Gradient.Visible = false;
            tChart4.Panel.Gradient.Visible = false;
            tChart5.Panel.Gradient.Visible = false;
            tChart6.Panel.Gradient.Visible = false;
            tChart7.Panel.Gradient.Visible = false;

            tChart7.Axes.Visible = false;

            tChart4[0].Marks.FontSeriesColor = true;
            tChart5[0].Marks.FontSeriesColor = true;
            tChart6[0].Marks.FontSeriesColor = true;

            pie1.Add(70);
            pie1.Add(25);
            bar1.Add(70);
            bar1.Add(25);

            pie2.Add(65);
            pie2.Add(30);
            bar2.Add(65);
            bar2.Add(30);

            pie3.Add(55);
            pie3.Add(40);
            bar3.Add(55);
            bar3.Add(40);

            label1.BorderThickness            = new Thickness(0);
            label1.FontFamily                 = new FontFamily("Meiryo UI");
            label1.HorizontalContentAlignment = HorizontalAlignment.Center;
            label1.VerticalContentAlignment   = VerticalAlignment.Center;
            label1.TextAlignment              = TextAlignment.Center;
        }