【发布时间】:2018-12-11 17:48:18
【问题描述】:
是否可以以任何方式从使用 EPPlus 和 C# 制作的图表中删除单个 DataLabel?
我只想删除一个,而不是孔图的设置... 如何访问 DataLabels 的集合(dLbls > dLbl)?
var chart = (ExcelBarChart)worksheet.Drawings.AddChart("Chart", eChartType.ColumnStacked);
还利用以下方法为 Chart 的单个点着色: Legend color is incorrect in excel chart created using EPPlus
(右上角的红点)
现在我想删除一个点的特定标签,通常应用 DataLabels...
chart.DataLabel.ShowValue = true;
任何提示表示赞赏。
【问题讨论】: