Problem in set minimum and maximum value of axes

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Problem in set minimum and maximum value of axes

Post by Amol » Sat May 11, 2013 6:00 am

Hello Steema Support,
I am using tee chart line series in Silverlight application, here I am facing one problem related tee chart Axes management in my chart Top axes are getting displayed but in top axes my minimum and maximum value of axes is not coming on ticks.

tChartGraph.Axes.Top.Maximum = lst_X_Axis__ForLine.Max();
tChartGraph.Axes.Top.Minimum = lst_X_Axis__ForLine.Min();
tChartGraph.Axes.Top.Increment = (tChartGraph.Axes.Top.Maximum - tChartGraph.Axes.Top.Minimum) / 8;


It will so helpful for us if you please provide any solution.

Thanks in advance.

Thanks and Regards
Planoresearch
Attachments
Untitled.jpg
Untitled.jpg (62.53 KiB) Viewed 4877 times

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

Re: Problem in set minimum and maximum value of axes

Post by Sandra » Mon May 13, 2013 2:24 pm

Hello Amo,

I have made a simple code where your problem doesn't appear for me.

Code: Select all

 private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Silverlight.Styles.Line line1 = new Steema.TeeChart.Silverlight.Styles.Line(tChart1.Chart);
            Random rnd = new Random();

            for (int i = 0; i < 100; i++)
            {
                line1.Add(i * 0.001, rnd.Next(100)); 
               
            }
            line1.HorizAxis = Steema.TeeChart.Silverlight.Styles.HorizontalAxis.Both;
            tChart1.Axes.Top.Labels.ValueFormat = "#,##0.###";
            tChart1.Axes.Bottom.Labels.ValueFormat = "#,##0.###";
           
        }
Could you tell us if in previous code works in your end?

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