开发者

Custom MarkerStyles possible in Microsoft Chart Controls? [duplicate]

This question already has answers here: .NET Charting Legend Marker Size (2 answers) 开发者_如何学Go Closed 6 years ago.

I'm using Microsoft Chart Controls (4.0), and have a line chart with several marker types. So much so, that I'm running out of markertypes. The defaults (square, triangle, circle, etc.) are insufficient.

Is it possible to add custom marker type images? For instance, I need a triangle pointed in the opposite direction.


You can create a opposite direction triangle image and set the marker image as

// Set an image marker for the third data point in series
Chart1.Series["Default"].Points[2].MarkerImage = "MyReverseTriangleImage.bmp";
Chart1.Series["Default"].Points[2].MarkerImageTransparentColor = Color.White;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜