找回密码
 立即注册

QQ登录

只需一步,快速开始

pinebud

注册会员

6

主题

14

帖子

138

积分

注册会员

积分
138

微信认证勋章

pinebud
注册会员   /  发表于:2018-6-4 13:48  /   查看:2726  /  回复:1
flexchart 的annotation功能中,当为DataCoordinate的时候,location是pointf类型的,但是我x轴坐标是时间,值是double类型的,当我添加annotation的时候,double到float的转换会使得时间上的差异比较大。不知道有没有什么解决方案呢?
  1. rectangle3 = new C1.Win.Chart.Annotation.Rectangle("DataCoordinate3", 10, 10)
  2.                 {
  3.                     Location = new PointF(fx, y),
  4.                     Attachment = AnnotationAttachment.DataCoordinate,
  5.                     Position = AnnotationPosition.Bottom,
  6.                     TooltipText = "This is a rectangle annotation\r\nLocation: { x:37, y:30 }\r\nAttachment: DataCoordinate"
  7.                 };

  8.                 rectangle3.ContentStyle.StrokeColor = Color.Black;
  9.                 rectangle3.ContentStyle.Font = new System.Drawing.Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold);
  10.                 rectangle3.Style.FillColor = Color.FromArgb(200, Color.SeaGreen);
  11.                 rectangle3.Style.StrokeColor = Color.DarkSlateBlue;
  12.                 rectangle3.Style.StrokeWidth = 2;
  13.                 layer.Annotations.Add(rectangle3);
复制代码


1 个回复

倒序浏览
JeffryLI
葡萄城公司职员   /  发表于:2018-6-4 16:16:26
沙发
您好,这块没太明白您的需求,或者您是想实现什么样的需求?
请点击评分,对我5分评价,谢谢!

葡萄城控件服务团队
官方网站: https://www.grapecity.com.cn/developer
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部