Page 1 of 1

Gauges and margins

Posted: Tue Sep 29, 2009 6:59 am
by 13046960
We would like to use the gauges series in a teechart for instrumentation display.
The problem is that the margins is to wide. Is there any possibility to reduce the margins so that the margins is only a couple of pixels?
We want to use linear, vertical, numeric and circular gauges.

Re: Gauges and margins

Posted: Tue Sep 29, 2009 2:35 pm
by yeray
Hi Janne,

This seems to work fine here:

Code: Select all

            tChart1.Aspect.View3D = false;
            
            tChart1.Draw();
            Steema.TeeChart.Styles.CircularGauge gauges1 = new Steema.TeeChart.Styles.CircularGauge(tChart1.Chart);
            //Steema.TeeChart.Styles.VerticalLinearGauge gauges1 = new Steema.TeeChart.Styles.VerticalLinearGauge(tChart1.Chart);
            //Steema.TeeChart.Styles.NumericGauge gauges1 = new Steema.TeeChart.Styles.NumericGauge(tChart1.Chart);
            //Steema.TeeChart.Styles.LinearGauge gauges1 = new Steema.TeeChart.Styles.LinearGauge(tChart1.Chart);
            gauges1.FillSampleValues();
            Rectangle rect = gauges1.CustomBounds;
            rect = tChart1.Chart.ChartBounds;
            gauges1.CustomBounds = rect;

Re: Gauges and margins

Posted: Wed Sep 30, 2009 5:55 am
by 13046960
Hi,

I do not have any property called "CustomBounds".
Is this something that has ben added in later releases?
My version is: 3.5.3225.32185

Re: Gauges and margins

Posted: Thu Oct 01, 2009 10:21 am
by yeray
Hi Janne,

Yes, this is a v2009 new property. So, I'm afraid I can't think on a way to do the same in v3 right now.