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?
Circular Gauge Alignment
-
- Newbie
- Posts: 4
- Joined: Fri Dec 28, 2018 12:00 am
Circular Gauge Alignment
- Attachments
-
- circgauge.png (58.96 KiB) Viewed 8425 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Circular Gauge Alignment
Hello!
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 |