0
我们使用打开的xml在exl导出中显示条形图,但它没有在数据上显示标签,如每个条上方的值。 这里是我使用在c中打开xml图表显示数据标签#
BarChart barChart = plotArea.AppendChild<BarChart>(new BarChart(new BarDirection() { Val = new EnumValue<BarDirectionValues>(BarDirectionValues.Column) },
new BarGrouping() { Val = new EnumValue<BarGroupingValues>(BarGroupingValues.Clustered) }));
BarChartSeries barChartSeries = barChart.AppendChild<BarChartSeries>(new BarChartSeries(new Index()
{
Val =
new UInt32Value(i)
},
new Order() { Val = new UInt32Value(i) },
new SeriesText(new NumericValue() { Text = key })));
的代码,其中密钥是用于酒吧数据值。但仍然没有显示。任何人都可以知道在哪里必须放置数据标签,以便在条形图中的每个条的顶部可以看到值标签