How to make logarithmic chart to center

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Beige
Newbie
Newbie
Posts: 25
Joined: Wed Jun 28, 2006 12:00 am

How to make logarithmic chart to center

Post by Beige » Tue Aug 11, 2009 4:13 am

I used the code
Chart1.Axes.Left.Logarithmic = true;
to show chart with logarithmic, but the chart is way over the top (see attached chartLogarithmic), how can I let the chart display in center?

Thanks ahead
Attachments
chartLogarithmic.png
chartLogarithmic.png (19.96 KiB) Viewed 3957 times
chart1.png
chart1.png (25.24 KiB) Viewed 3957 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: How to make logarithmic chart to center

Post by Sandra » Tue Aug 11, 2009 10:05 am

Hello Beige,
...but the chart is way over the top (see attached chartLogarithmic), how can I let the chart display in center?
I recomend that adjust left axes using SetMinMax(minValue,maxValue). Please see next simple example, and check if is that you want do.

Code: Select all

        Steema.TeeChart.Styles.Line line1;   
        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            line1.FillSampleValues(100);
            line1.Color = Color.Red;
            line1.LinePen.Color = Color.Red;
            line1.LinePen.Width = 2;
            tChart1.Axes.Left.Logarithmic = true;
            tChart1.Axes.Left.SetMinMax(10, 10000);
        }
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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply