Search found 5 matches

by MattHolmes
Thu Sep 20, 2007 8:42 pm
Forum: .NET
Topic: [Solved] Series lines are black regardless of color set
Replies: 8
Views: 5068

In the process of creating that small sample, I figured out the issue. Because I am porting legacy C++ code to C#, I was adding points to the series using the Add(double, double, Color) method, because that's how it was done in the old VCL version of this piece of software. The color that was always...
by MattHolmes
Thu Sep 20, 2007 4:13 pm
Forum: .NET
Topic: [Solved] Series lines are black regardless of color set
Replies: 8
Views: 5068

Alright. Well, all the other color values of my lines series are fine during the BeforeDrawValues event. I will try and break out a couple of these series (their points anyway) and put you together a quick app to look at. I am wondering if I am just missing setting elsewhere, like the chart itself.
by MattHolmes
Thu Sep 20, 2007 4:00 pm
Forum: .NET
Topic: [Solved] Series lines are black regardless of color set
Replies: 8
Views: 5068

I found something odd. I added a BeforeDrawValues event to each of my line series and inspected the values in the LinePen and Brush properties of the line. When using the color {0, 170, 109}, the Brush.Color and Brush.ForegroundColor inspect correctly, but LinePen.Color has somehow been divided by t...
by MattHolmes
Thu Sep 20, 2007 3:38 pm
Forum: .NET
Topic: [Solved] Series lines are black regardless of color set
Replies: 8
Views: 5068

I can try. Pulling this code out of my project is going to be a real pain, but I'll see what I can do.
by MattHolmes
Wed Sep 19, 2007 5:29 pm
Forum: .NET
Topic: [Solved] Series lines are black regardless of color set
Replies: 8
Views: 5068

[Solved] Series lines are black regardless of color set

I am setting a series line color as such: line.LinePen.Width = 2; line.LinePen.Color = color; line.Pointer.Brush.Color = color; line.Pointer.Pen.Color = color; line.Color = color; line is a Styles.Line instance. The issue is that the lines are drawn in black on the chart. They show up in the correct...