Legend bug?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
betulus
Newbie
Newbie
Posts: 25
Joined: Wed Apr 28, 2004 4:00 am
Location: Britishland

Legend bug?

Post by betulus » Fri Apr 29, 2005 11:13 am

Hi again,

I am trying to do a simple chart, the chart has an indeterminate number of lines and just one set / of bars. I have set the bar pattern using this code:

// code for bar
Steema.TeeChart.Styles.Bar bar = new Bar(chart);
bar.Brush.Style = System.Drawing.Drawing2D.HatchStyle.Trellis;
bar.Marks.Visible = false;
bar.BarWidthPercent = 99; // default = 70%
bar.Color = Color.Black;

But for some reason the legend for this bar series is filled with a solid pattern rather than the Trellis pattern attached to the series. Also, the box is surrounded by a dotted blue line for some reason. I have used a dotted blue line to draw a line on the same chart, but didn't expect this setting to affect every other series on the graph! Here is the code for the line if its relavent:

// code for line (repeated once for each line)
Steema.TeeChart.Styles.Line line = new Line(chart);
line.Color = seriesDef.Colour;
line.LinePen.Style = System.Drawing.Drawing2D.DashStyle.Dash;
line.LinePen.Width = 2;

I would really appreciate your help. I did see the similar historical post, similar to this, but the answer talked involved using images which I didn't want to do!
:roll: Thanks
Matt

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 29, 2005 11:27 am

Hi Matt,

I've already replied to the thread you replied to regarding this problem.
Best Regards,
Narcís Calvet / 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