110,571
社区成员
发帖
与我相关
我的任务
分享
private void button2_Click(object sender, EventArgs e)
{
this.zedGraphControl1.GraphPane.Title.Text = "动态折线图";
this.zedGraphControl1.GraphPane.XAxis.Title.Text = "时间";
this.zedGraphControl1.GraphPane.YAxis.Title.Text = "数量";
GraphPane myPane = new GraphPane(new Rectangle(40, 40, 600, 400),
"My Test Graphn(For CodeProject Sample)",
"My X Axis",
"My Y Axis");
myPane.XAxis.Scale.IsPreventLabelOverlap = true; //坐标值显示是否允许重叠,如果False的话,控件会根据坐标值长度自动消除部分坐标值的显示状态
}