Custom MarkerStyles possible in Microsoft Chart Controls? [duplicate]

帅比萌擦擦* 提交于 2019-12-07 06:56:16

问题


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.


回答1:


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;


来源:https://stackoverflow.com/questions/6682404/custom-markerstyles-possible-in-microsoft-chart-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!