ZedGraph控件的缩放不要出现负轴,该怎么解决
2个回答
展开全部
zedGraphControl1.ZoomEvent += new ZedGraphControl.ZoomEventHandler(zedGraphControl1_ZoomEvent);
private void zedGraphControl1_ZoomEvent(ZedGraphControl sender, ZoomState oldState, ZoomState newState)
{
myPane.XAxis.Scale.BaseTic = 0;
myPane.XAxis.Scale.Min = 0;
myPane.YAxis.Scale.Min = 0;
}
private void zedGraphControl1_ZoomEvent(ZedGraphControl sender, ZoomState oldState, ZoomState newState)
{
myPane.XAxis.Scale.BaseTic = 0;
myPane.XAxis.Scale.Min = 0;
myPane.YAxis.Scale.Min = 0;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询