Page 1 of 1

How to make logarithmic chart to center

Posted: Tue Aug 11, 2009 4:13 am
by 9641714
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

Re: How to make logarithmic chart to center

Posted: Tue Aug 11, 2009 10:05 am
by 10050769
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,