Page 1 of 1

Problem in set minimum and maximum value of axes

Posted: Sat May 11, 2013 6:00 am
by 9641422
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

Re: Problem in set minimum and maximum value of axes

Posted: Mon May 13, 2013 2:24 pm
by 10050769
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,