Some portion of the line in Top area of chart disappears

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
priya
Newbie
Newbie
Posts: 2
Joined: Wed Dec 16, 2009 12:00 am

Some portion of the line in Top area of chart disappears

Post by priya » Thu Oct 07, 2010 3:36 pm

Some portion of the line in Top area of chart disappears.
I have line series. Some portion of the line series in the Top area of the chart disappears. Have attached sample to reproduce same. The last 3 points are not drawn. Following are the values added to datasoure for the YMember of the series.

curves[0].Index2 = 11.438;
curves[1].Index2 = 26.072;
curves[2].Index2 = 55.339;
curves[3].Index2 = 58.670;
curves[4].Index2 = 62.000;
curves[5].Index2 = 68.000;
curves[6].Index2 = 74.000;
curves[7].Index2 = 76.000;
curves[8].Index2 = 78.000;
curves[9].Index2 = 79.333;
curves[10].Index2 = 80.667;
curves[11].Index2 = 82.000;
curves[12].Index2 = 82.000;
curves[13].Index2 = 82.000;
curves[14].Index2 = 82.000;

Regards,
Priya
Attachments
TeechartSample.zip
Sample project
(10.54 KiB) Downloaded 246 times

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

Re: Some portion of the line in Top area of chart disappears

Post by Sandra » Fri Oct 08, 2010 11:34 am

Hello priya,

I have added SetMinMax() method in your code and seems works fine for me using last version 4. Please add next changes in your code and try again if your problem is solved:

Code: Select all

 private void AddSeries()
        {
            Steema.TeeChart.WPF.Styles.Line line = new Steema.TeeChart.WPF.Styles.Line();
            line.DataSource = curves;
            line.XValues.DataMember = "Index";
            line.YValues.DataMember = "Index2";
            tchart.Series.Add(line);
            tchart.Axes.Left.SetMinMax(line.YValues.Minimum, line.YValues.Maximum+3);
            tchart.Axes.Left.Increment = 5;
           
        }
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

priya
Newbie
Newbie
Posts: 2
Joined: Wed Dec 16, 2009 12:00 am

Re: Some portion of the line in Top area of chart disappears

Post by priya » Mon Oct 11, 2010 11:27 am

Thanks. This helps.

Regards,
Priya

Post Reply