Indication in Stacked chart for MIN, MAX (stuck here for a month ..)

倖福魔咒の 提交于 2019-12-25 03:14:39

问题


Stuck in trying to adjust an arrow (sort of) inside an Excel chart.

I have a column chart with series of data. I want to point out minimum, maximum, and average value from the chart. What i was planning is, to mark it by an arrow.

Is it possible via C#?

For the below chart, I want to indicate MIN & MAX, like the ones I have drawn.

I started by getting the charts by this:

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

Findings:

I could not even find a general way - to represent min,max in a stacked chart.

来源:https://stackoverflow.com/questions/53831269/indication-in-stacked-chart-for-min-max-stuck-here-for-a-month

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!