Page 1 of 1

Legend bug?

Posted: Fri Apr 29, 2005 11:13 am
by 8125254
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

Posted: Fri Apr 29, 2005 11:27 am
by narcis
Hi Matt,

I've already replied to the thread you replied to regarding this problem.