Concerning FastLineSeries

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Friisen
Newbie
Newbie
Posts: 4
Joined: Tue Apr 09, 2013 12:00 am

Concerning FastLineSeries

Post by Friisen » Fri May 02, 2014 12:08 pm

Hi,

I use the following code and I get the result shown in the attached file "Chart1" but I would have expected the result shown in the attached file "Chart2". What am I doing wrong??

I'm using TeeChart Pro .Net v2010 version 4.1.2012.2283 on VS C# 2010 .NET framework 4, Windows application, on Win7

Code: Select all

        private void test()
        {
            Steema.TeeChart.Styles.FastLine fastline1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
            this.tChart1.Series.Add(fastline1);

            fastline1.Add(2000, 400, Color.Red);
            fastline1.Add(2100, 380, Color.Red);
            fastline1.Add(2200, 360, Color.Red);
            fastline1.Add(2300, 340, Color.Red);
            fastline1.Add(2400, 320, Color.Red);
            fastline1.Add(2300, 300, Color.Red);
            fastline1.Add(2200, 280, Color.Red);
            fastline1.Add(2100, 260, Color.Red);
            fastline1.Add(2000, 240, Color.Red);
        }


Attachments
Chart2.png
Chart2.png (38.22 KiB) Viewed 6175 times
Chart1.png
Chart1.png (40.63 KiB) Viewed 6165 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Concerning FastLineSeries

Post by Christopher » Mon May 05, 2014 9:39 am

Hello,
Friisen wrote:I use the following code and I get the result shown in the attached file "Chart1" but I would have expected the result shown in the attached file "Chart2". What am I doing wrong??
I'm not entirely sure what's happening here. Using TeeChart.NET v2012, the code you give me produces the desired chart (Chart2). Can you try making a call to:

Code: Select all

tChart1.Clear();
before calling your test() function?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Friisen
Newbie
Newbie
Posts: 4
Joined: Tue Apr 09, 2013 12:00 am

Re: Concerning FastLineSeries

Post by Friisen » Mon May 05, 2014 10:50 am

Hi,

I found the error - If I use the code below; then I can get it to work ;-)

Code: Select all

FastLineseries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.None;

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Concerning FastLineSeries

Post by Christopher » Mon May 05, 2014 11:09 am

Friisen wrote:I found the error - If I use the code below; then I can get it to work ;-)
Great stuff :)
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply