ZedGraph title 显示不出来

dhc_6huoCangLong 2010-10-18 10:46:34
别人写的一个柱状图 可是title显示不出来
我以前没接触过ZedGraph 现在想修改代码把title显示出来,找了半天,试了半天也没弄出来。。。
请教 问题可能出在 哪里?
...全文
129 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
dhc_6huoCangLong 2010-10-18
  • 打赏
  • 举报
回复
来人帮忙啊 555 谢谢啦~
急哦
dhc_6huoCangLong 2010-10-18
  • 打赏
  • 举报
回复
一些设置如下:
this.IsScrollY2 = false;
this.IsShowContextMenu = true;
this.IsShowCopyMessage = true;
this.IsShowCursorValues = false;
this.IsShowHScrollBar = false;
this.IsShowPointValues = false;
this.IsShowVScrollBar = false;
this.IsSynchronizeXAxes = false;
this.IsSynchronizeYAxes = false;
this.IsZoomOnMouseCenter = false;
dhc_6huoCangLong 2010-10-18
  • 打赏
  • 举报
回复
程序中有如下几行代码
LChart = this.GraphPane;


LChart.Title.Text = info.ChartTitleName;
LChart.Title.FontSpec.FontColor = info.ChartTitleColor;

LChart.XAxis.MajorGrid.IsVisible = info.IsGridVisible;
LChart.Legend.IsVisible = info.IsLegendVisible;
LChart.Legend.Position = (ZedGraph.LegendPos)info.Pos;
dhc_6huoCangLong 2010-10-18
  • 打赏
  • 举报
回复
本人已解决 原来是title位置被其他控件覆盖了。。。谢谢楼上的顶
csz_1987 2010-10-18
  • 打赏
  • 举报
回复
zgc.GraphPane.YAxis.Title.Text = string.Empty
csz_1987 2010-10-18
  • 打赏
  • 举报
回复
zgc.GraphPane.Title.Text = string.Empty;
csz_1987 2010-10-18
  • 打赏
  • 举报
回复
 zgc.GraphPane.XAxis.Title.Text = string.Empty;

110,567

社区成员

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

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

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