自MarkerStyles可能在Microsoft图表控件? [英] Custom MarkerStyles possible in Microsoft Chart Controls?

查看:145
本文介绍了自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;

这篇关于自MarkerStyles可能在Microsoft图表控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆