I am stuck on an issue with an EPPlus (4.0.1). My bar graph is plotting horizontally but I would like it to be vertical. I am trying to change the "chart.Direction" property, but I am given an error because it is read-only. I also do not see a way to set the variable in the constructor for my 'ExcelBarChart' variable. Sorry if this is a basic question, I am reading the documentation but cannot figure it out. chart.Direction might not even be the correct property for all I know. I am programming in C#. Thanks in advance for any answers.
OfficeOpenXml.Drawing.Chart.ExcelBarChart chart = (OfficeOpenXml.Drawing.Chart.ExcelBarChart)ws.Drawings.AddChart("barChart", OfficeOpenXml.Drawing.Chart.eChartType.BarClustered);
chart.SetSize(widthPx, heightPx);
chart.SetPosition(startTopPx, startLeftPx);
chart.Title.Text = "Clustered Bar Graph Report";
chart.Direction = eDirection.Column; // error: Property or indexer 'OfficeOpenXml.Drawing.Chart.ExcelBarChart.Direction' cannot be assigned to -- it is read only
ws.Cells["A1"].LoadFromDataTable(data, true); // load dataTable into Cells
int fromRow = 2;
int toRow = 2;
int fromCol = 2;
int toCol = 5;
int xRow = 2;
int xCol = 1;
chart.Series.Add(ExcelRange.GetAddress(fromRow, fromCol, toRow, toCol),
ExcelRange.GetAddress(xRow, xCol));