Example #1
0
        private void SetUpLGauge()
        {
            Axis axisH = new Axis();

            axisH.Horizontal = true;
            Axis axisV = new Axis();

            axisV.Horizontal              = false;
            lGauge                        = new LinearGauge();
            lGauge.HorizAxis              = HorizontalAxis.Custom;
            lGauge.VertAxis               = VerticalAxis.Custom;
            lGauge.Horizontal             = false;
            lGauge.Visible                = false;
            lGauge.CustomHorizAxis        = axisH;
            lGauge.CustomVertAxis         = axisV;
            lGauge.Axis.Title.Font.Size   = 7;
            lGauge.Axis.Title.Font.Color  = CustomGauge.GetGaugePaletteColor(20, lGauge.GaugeColorPalette);
            lGauge.Axis.Title.Caption     = "Independent value";
            lGauge.Axis.Labels.Font.Size  = 6;
            lGauge.Axis.Labels.Font.Color = CustomGauge.GetGaugePaletteColor(20, lGauge.GaugeColorPalette);
            lGauge.Axis.Increment         = 20;
            lGauge.RedLine.Visible        = false;
            lGauge.GreenLine.Visible      = false;
            lGauge.Frame.Visible          = false;
            lGauge.FaceBrush.Visible      = false;
        }
Example #2
0
 private void cbHoriz_CheckedChanged(object sender, EventArgs e)
 {
     cGauge.LinearGauge.Horizontal             = cbHoriz.Checked;
     cGauge.LinearGauge.Axis.Title.Visible     = false;
     cGauge.LinearGauge.Axis.Increment         = 50;
     cGauge.LinearGauge.Axis.Labels.Font.Size  = 7;
     cGauge.LinearGauge.Axis.Labels.Font.Color = CustomGauge.GetGaugePaletteColor(20, cGauge.GaugeColorPalette);
 }
Example #3
0
 private void InitializeChart()
 {
     tChart1.Series.Add(cGauge  = new CircularGauge());
     cGauge.LinearGauge.Visible = true;
     cGauge.Value = 1;
     cGauge.Axis.Labels.Font.Size  = 7;
     cGauge.Axis.Labels.Font.Color = CustomGauge.GetGaugePaletteColor(20, cGauge.GaugeColorPalette);
     cGauge.TotalAngle             = 280;
     timer1.Interval = 10;
     timer2.Interval = 500;
 }
Example #4
0
 private void InitializeChart()
 {
     tChart1.Series.Add(cGauge   = new CircularGauge());
     cGauge.DisplayTotalAngle    = 180;
     cGauge.DisplayRotationAngle = -90;
     cGauge.TotalAngle           = 150;
     cGauge.RotationAngle        = 90;
     cGauge.Value = 1;
     cGauge.Axis.Labels.Font.Size      = 7;
     cGauge.Axis.Labels.Font.Color     = CustomGauge.GetGaugePaletteColor(20, cGauge.GaugeColorPalette);
     cGauge.FaceBrush.Color            = Color.FromArgb(255, 255, 192);
     cGauge.FaceBrush.Gradient.Visible = false;
     timer1.Enabled = true;
 }
Example #5
0
        private void InitializeChart()
        {
            tChart1.Series.Add(cGauge     = new CircularGauge());
            cGauge.RotationAngle          = 270;
            cGauge.TotalAngle             = 180;
            cGauge.Axis.Labels.Font.Size  = 7;
            cGauge.Axis.Labels.Font.Color = CustomGauge.GetGaugePaletteColor(20, cGauge.GaugeColorPalette);
            cGauge.RedLine.Visible        = false;
            cGauge.GreenLine.Visible      = false;
            cGauge.BeforeDrawHand        += new PaintChartEventHandler(cGauge_BeforeDrawHand);
            cGauge.Value = 1;

            timer1.Enabled = true;

            SetUpNGauge();
            SetUpLGauge();
        }