摘要:MS Chart for ASP.NET 可以加上刻度中斷線嗎?
研討會上有朋友問,MS Chart for ASP.NET 可以加上刻度中斷線嗎?答案是可以,作法如以下的程式碼所示(請參閱附圖):
this.Chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.Enabled = true;
this.Chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.CollapsibleSpaceThreshold = 11;
Chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.BreakLineStyle = BreakLineStyle.Wave;
Chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.Spacing = 4;
Chart1.ChartAreas["ChartArea1"].AxisY.ScaleBreakStyle.LineColor = Color.Red;