I have a simple chart that is being created programatically that is not coming out correctly when the file is opened in Excel. The issues are that t none of the axis labels show up and that the lines are smooth.
Here is the code that I use to add the chart to the spreadsheet:
int chartIndex = ws.Charts.Add(ChartType.LineStacked, 19, 0, 45, 10);
Chart chart = ws.Charts[chartIndex];
chart.Placement = PlacementType.FreeFloating;
int moveInDataSeriesIndex = chart.NSeries.AddR1C1("B12:E12", false);
SetSeriesName(chart, moveInDataSeriesIndex, "Move Ins");
int workOrderDataSeriesIndex = chart.NSeries.AddR1C1("B13:E13", false);
SetSeriesName(chart, workOrderDataSeriesIndex, "Work Orders");
int PrerenewalDataSeriesIndex = chart.NSeries.AddR1C1("B14:E14", false);
SetSeriesName(chart, PrerenewalDataSeriesIndex, "Pre Renewals");
int unclosedTrafficDataSeriesIndex = chart.NSeries.AddR1C1("B15:E15", false);
SetSeriesName(chart, unclosedTrafficDataSeriesIndex, "Unclosed Traffic");
chart.NSeries.CategoryData = "B11:E11";
chart.ShowLegend = true;
chart.CategoryAxis.IsVisible = true;
chart.ValueAxis.MinValue = 0.0;
chart.ValueAxis.MaxValue = 5.0;
chart.ValueAxis.IsVisible = true;