自MarkerStyles可能在Microsoft图表控件?

问题描述:

我使用 Microsoft图表控件(4.0),并有一个折线图与几个标记类型。正因如此,那我跑出来markertypes的。默认值(正方形,三角形,圆形等)是不够的。

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;