Hi!
How to center or move up/down value in NumericGauge inside Circular gauge?
It is always on top of numeric gauge frame. When size of gauge is small it overlaps frame.
NumericGauge value position inside CircularGaguge
NumericGauge value position inside CircularGaguge
- Attachments
-
- Screen Shot 2013-10-29 at 4.35.05 PM.png (10.51 KiB) Viewed 8696 times
Re: NumericGauge value position inside CircularGaguge
Hello Thomas,
To change the position of the LinearGauge of your circularGauge you must only set to false, the automatic position as do in next lines of code:
Could you tell us if previous code works in your end?
I hope will helps.
Thanks,
To change the position of the LinearGauge of your circularGauge you must only set to false, the automatic position as do in next lines of code:
Code: Select all
Steema.TeeChart.TChart tChart1;
public Form1()
{
InitializeComponent();
tChart1 = new TChart();
this.Controls.Add(tChart1);
tChart1.Top = 150;
tChart1.Left = 100;
tChart1.Height = 400;
tChart1.Width = 550;
InitializeChart();
}
Rectangle tmpG;
private void InitializeChart()
{
Steema.TeeChart.Styles.CircularGauge circulargaugeL = new CircularGauge(tChart1.Chart);
circulargaugeL.NumericGauge.Visible = true;
circulargaugeL.Value = 30;
circulargaugeL.AutoValueNumericGauge = false;
circulargaugeL.NumericGauge.Value = 50;
tChart1.Draw();
//Custom postion of NumericGauge:
circulargaugeL.AutoPositionNumericGauge = false;
tmpG = circulargaugeL.NumericGauge.CustomBounds;
tmpG.X = 200;
tmpG.Y = 300;
circulargaugeL.NumericGauge.CustomBounds = tmpG;
}
void button1_Click(object sender, EventArgs e)
{
tChart1.ShowEditor();
}
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / 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 |
Re: NumericGauge value position inside CircularGaguge
Thanks. It works. But i need something like gauge on image. Can you help?
I can't hide border of numeric gauge (circularGauge.NumericGauge.FaceBrush.Visible = false; not working),
can't change text color (circularGauge.NumericGauge.ValueMarker.Shape.Font.Color not working)
Thanks in advance.
I can't hide border of numeric gauge (circularGauge.NumericGauge.FaceBrush.Visible = false; not working),
can't change text color (circularGauge.NumericGauge.ValueMarker.Shape.Font.Color not working)
Thanks in advance.
- Attachments
-
- gauge.png (25.26 KiB) Viewed 8684 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: NumericGauge value position inside CircularGaguge
Hello,
If it is just text you want, maybe the easiest thing to do is this:
This does work, but has to be used in conjunction with:I can't hide border of numeric gauge (circularGauge.NumericGauge.FaceBrush.Visible = false; not working)
Code: Select all
series.NumericGauge.ValueMarker.Shape.Transparent = true;
This also works, but has to be used in conjunction with:can't change text color (circularGauge.NumericGauge.ValueMarker.Shape.Font.Color not working)
Code: Select all
series.NumericGauge.ValueMarker.UsePalette = false;
Code: Select all
Steema.TeeChart.Styles.CircularGauge series;
private void InitializeChart()
{
tChart1.AfterDraw += tChart_AfterDraw;
tChart1.Aspect.View3D = false;
series = new CircularGauge(tChart1.Chart);
series.FillSampleValues();
series.TotalAngle = 180;
}
private void tChart_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.Font.Color = Color.White;
g.Font.Size = 20;
g.TextOut(g.ChartXCenter - 25, g.ChartYCenter + 70, "303");
}
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 |