MIN,MAX的堆叠图表中的指示(在此处停留一个月..)

时间:2018-12-18 10:43:11

标签: c# charts excel-interop excel-charts

坚持尝试在Excel图表内调整箭头(某种)。

我有一个带有一系列数据的柱形图。 我想指出图表中的最小值,最大值和平均值。 我打算用箭头标记它。

是否可以通过C#

对于下面的图表,我想指出最小和最大,就像我绘制的一样。

enter image description here

我首先通过以下方法获取图表:

Excel.Application app = new Excel.Application();
Excel.Workbook book;
Excel.Worksheet sheet;
Excel.ChartObject chartObj;
Excel.Chart chart;

book = app.Workbooks.Open(@"Path to workbook");//Open the work book
sheet = book.Sheets["sheet name"];//Select the sheet the chart is on
chartObj = sheet.ChartObjects("Chart name");//Select the ChartObject
chart = chartObj.Chart; //Select the Chart from the ChartObjec

发现:

我什至找不到通用的方法-在堆叠图表中表示最小值,最大值。

0 个答案:

没有答案