Circular Gauge Alignment

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sofia Moraes
Newbie
Newbie
Posts: 4
Joined: Fri Dec 28, 2018 12:00 am

Circular Gauge Alignment

Post by Sofia Moraes » Thu Feb 21, 2019 11:31 am

Good morning,
I am working on a circular gauge with an annotation.

I want the chart left aligned to use the rest of area to put some annotations.
Attached my TChart area print.
What I mean is to put the gauge at left, leaving the whole area of chart freed for notes.

Is it possible to left align the chart?
Attachments
circgauge.png
circgauge.png (58.96 KiB) Viewed 434 times

Christopher
Guru
Posts: 1176
Joined: Fri Nov 15, 2002 12:00 am

Re: Circular Gauge Alignment

Post by Christopher » Fri Feb 22, 2019 7:57 am

Hello!
Sofia Moraes wrote:
Thu Feb 21, 2019 11:31 am
Is it possible to left align the chart?
Yes, yes it is. You will be able to use the GetAxesChartRect event to define the rectangle in which you want to draw the CircularGauge series e.g.:

Code: Select all

        public Form1()
        {
            InitializeComponent();

            tChart1.Series.Add(typeof(CircularGauge)).FillSampleValues();

            tChart1.GetAxesChartRect += TChart1_GetAxesChartRect;
        }

        private void TChart1_GetAxesChartRect(object sender, Steema.TeeChart.GetAxesChartRectEventArgs e)
        {
            var rect = e.AxesChartRect;
            rect.Width = 200;
            rect.X = 200;

            e.AxesChartRect = rect;
        }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply