Legend color Horizontol Area

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MVB
Newbie
Newbie
Posts: 7
Joined: Thu Dec 31, 2009 12:00 am

Legend color Horizontol Area

Post by MVB » Mon Apr 12, 2010 8:48 am

Hi Support,

I have an issue with the legend color of a Horizontal Area series. My sample code to test the issue:

Code: Select all

          Steema.TeeChart.Styles.HorizArea area = new Steema.TeeChart.Styles.HorizArea();
          m_tchart.Series.Add(area);
          m_tchart.Series.Add(new Steema.TeeChart.Styles.Line());
          area.Color = System.Drawing.Color.Green;
I would expect the color of the legend icon for the Horizontal Area to be green, but it gets another color.

Kind regards,
Marijke.

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

Re: Legend color Horizontol Area

Post by Sandra » Mon Apr 12, 2010 11:42 am

Hello Marijke,

I could reproduce your problem and I consider it as a Bug with number [TF02014791]. We will try to fix for next versions of TeeChart .Net.
On the other hand, I found a workaround that solve your problem. You only have added tChart1.Draw () in code.

Code: Select all

            Steema.TeeChart.Styles.HorizArea area = new Steema.TeeChart.Styles.HorizArea(tChart1.Chart);
            area.FillSampleValues();
            tChart1.Series.Add(new Steema.TeeChart.Styles.Line());
            area.Color = Color.Green;
            tChart1.Draw();
Please, check previous code works as you want in your application.

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

Post Reply