开发者

Zedgraph symbol.fill

In Zedgraph I am unable to get my circle filled - even though I think I have copied the docs. Anyone know why?

myCurve[j] = myPane.AddCurve(SerNames[j], list[j], colours[j], SymbolType.None);
myCurve[j].Line.IsVisibl开发者_开发技巧e = false;
myCurve[j].Symbol.Type = SymbolType.Circle;
myCurve[j].Symbol.Size = 4.0F;
myCurve[j].Symbol.Border.Width = 2.0F;
myCurve[j].Symbol.Border.Color = Color.Red;
myCurve[1].Symbol.Fill = new Fill(Color.Red);
//myCurve[1].Symbol.Fill.IsVisible = true;
myCurve[1].Symbol.Fill.Type = FillType.Solid;


The problem may lie outside the code sample provided. One thing that stands out as odd is that when you add the curve to the pane, you specify SymbolType.None, yet two lines later it is set to SymbolType.Circle. This should not cause a fill problem, but I would still change the original symbol type to the desired type and eliminate the redundant line.

Next, I presume you have many curves added to the pane, but only want solid circles on myCurve[1]. If one of the other curves is in on top of 1, and has data points in the exact same location, those circles will hide the filled ones. You might want to guarantee that myCurve[1] is in the foreground, using the Move() method:

myPane.CurveList.Move(myPane.CurveList.IndexOf(myCurve[1]), -999);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜