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!
Thanks
Matt
Legend bug?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Best Regards,
Narcís Calvet / 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 |