1
4
要设置折线图的颜色:
如果希望个别连接线具有不同的颜色,则需要按如下方式处理ChartSeries.PrepareStyle事件:
void系列_PrepareStyle(对象发送方,ChartPrepareStyleinForEventArgs参数) { //使用准备样式事件为数据点指定不同的颜色 ChartSeries Series=作为ChartSeries的发送方; 如果(系列)!=空) { if(this.chartcontrol1.series[0].type.toString()==“行”) { if(args.index==0) args.style.interior=新建syncfusion.drawing.brushinfo(color.red); else if(args.index==1) args.style.interior=新建syncfusion.drawing.brushinfo(color.green); else if(args.index==2) args.style.interior=新建syncfusion.drawing.brushinfo(color.blue); else if(args.index==3) args.style.interior=new-syncfusion.drawing.brushinfo(color.yellow); else if(args.index==4) 当做, 杰伊 |
JOO · 使用udpClient从多个IP地址连续接收数据 2 年前 |
Futterkiste · 函数比例图 2 年前 |
user18789895 · 我应该如何验证WinForms应用程序? 2 年前 |
beriscen · 如何使整个链接标签区域可点击? 2 年前 |
lpmaxim · 当鼠标光标悬停在按钮上时,背景图像会移动 2 年前 |