Page 1 of 1

Legend color Horizontol Area

Posted: Mon Apr 12, 2010 8:48 am
by 15654986
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.

Re: Legend color Horizontol Area

Posted: Mon Apr 12, 2010 11:42 am
by 10050769
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,