4,816
社区成员
发帖
与我相关
我的任务
分享
double XLow= (double)new XDate(Convert.ToDateTime(dr[0])); //X轴,所有日期的最小值的日期
double YLow = Math.Round(Convert.ToDouble(dr[3]), 2); //Y轴,所有日期的最小的值
string labLow = YLow.ToString("0.00");
TextObj textLow = new TextObj(labLow , XLow, YLow);
textLow.FontSpec.FontColor = Color.White;
textLow.FontSpec.Size = 10;
textLow.FontSpec.Border.IsVisible = false;
textLow.FontSpec.Fill.IsVisible = false;
textLow.Location.AlignH = AlignH.Left;
textLow.Location.AlignV = AlignV.Bottom;
textLow.FontSpec.StringAlignment = StringAlignment.Far;
myPane.GraphObjList.Add(textLow);