TeeChart中如何显示曲线的名字

mimic784887927 2013-05-04 04:32:27
C#中使用TeeChar控件时,画了一条曲线,我怎么显示曲线的名字呢!代码如下:
tChart1.Aspect.View3D = false;
tChart1.Chart.Legend.Visible = true;
tChart1.Chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Right;
tChart1.Chart.Header.Text = "lllll";
tChart1.Chart.Legend.Title.Text = "Legend";
tChart1.Axes.Left.Automatic = true;
tChart1.Axes.Bottom.Automatic = true;

// tChart1.Chart.Legend
tChart1.Series.Clear();


// Steema.TeeChart.Styles.Line line1 = new Line();

line1.DataSource = sourceDataTable;
line1.YValues.DataMember = sourceDataTable.Columns[1].ColumnName.ToString();
line1.XValues.DataMember = sourceDataTable.Columns[0].ColumnName.ToString();
line1.XValues.DateTime = false;
line1.YValues.DateTime = false;
line1.Title = "nihaonihaonihao";

//line1.Pointer.Visible = true;
tChart1.Series.Add(line1);

这样设置line1.Title = "nihaonihaonihao"; 曲线的Title是没有用的!
...全文
254 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
bridgemiao 2013-12-02
  • 打赏
  • 举报
回复
同问,你找到解决办法了吗

110,546

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧