zedGraph参数设置

1、背景透明设置:
this.zedGraphControl1.GraphPane.Chart.Fill = newFill(Color.Transparent, Color.Transparent, 45.0f);
this.zedGraphControl1.MasterPane.Fill = newFill(Color.Transparent, Color.Transparent, 45.0f);
this.zedGraphControl1.GraphPane.Fill.Color = Color.Transparent;
三个背景填充属性都设置为透明时背景透明 或者:
this.zedGraphControl1.GraphPane.Fill.Color = Color.Transparent;
this.zedGraphControl1.MasterPane.Fill.IsVisible = false;
this.zedGraphControl1.GraphPane.Chart.Fill.IsVisible = false; 

2、坐标轴颜色:
this.zedGraphControl1.GraphPane.YAxis.Color = Color.Red;
this.zedGraphControl1.GraphPane.Y2Axis.Color = Color.Red;


3、文字及颜色 图表标题
this.zedGraphControl1.GraphPane.Title.Text = "GraphPane.Title.Text";
坐标轴标题 this.zedGraphControl1.GraphPane.XAxis.Title.Text = "GraphPane.XAxis.Title";
图表边框颜色:
内边框 this.zedGraphControl1.GraphPane.Chart.Border.Color = Color.Red;
外边框 this.zedGraphControl1.GraphPane.Border=newBorder(Color.Red,0);
隐藏外边框: this.zedGraphControl1.BorderStyle = BorderStyle.None;
this.zedGraphControl1.GraphPane.Border.IsVisible = false;
this.zedGraphControl1.MasterPane.Border.IsVisible = false;


4、坐标轴刻度及字体颜色: this.zedGraphControl1.GraphPane.XAxis.Scale.FontSpec.FontColor = Color.White;
this.zedGraphControl1.GraphPane.XAxis.MajorTic.Color = Color.Red; this.zedGraphControl1.GraphPane.XAxis.MinorTic.Color = Color.Red;


5、网格及颜色: this.zedGraphControl1.GraphPane.XAxis.MajorGrid.IsVisible = true;
this.zedGraphControl1.GraphPane.XAxis.MajorGrid.Color = Color.Gray;


6、曲线标签位置 this.zedGraphControl4.GraphPane.Legend.Position = LegendPos.Right;

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值