根据不同的图表,接口可能稍有不同,获取series后,可以设置相关属性
- var series = chart.Model.PlotAreas[0].Series;
- var serie1 = series[2] as FarPoint.Win.Chart.BarSeries;
- serie1.BarFill = new FarPoint.Win.Chart.SolidFill(Color.Black);
- serie1.LabelVisible = true;
- serie1.LabelTextDirection = FarPoint.Win.Chart.TextDirection.Rotate270Degree;
复制代码 |