I have the following code to add a graph to an Excel object created with Syncfusion.XlsIO. But I don't see any labels on the Horizontal(X) axis. How do I control the labels on the axis?
var chart = _worksheet.Charts.Add();
chart.TopRow = toprow;
chart.BottomRow = toprow + 25;
chart.RightColumn = 15;
chart.ChartTitle = "Project cash-flow";
chart.ChartType = ExcelChartType.Line;
var productA = chart.Series.Add("Cumulatief grond cash-flow");
productA.Values = _worksheet.Range[row, 2, row, column];
productA.CategoryLabels = _worksheet.Range[1, 2, 1, column];
productA.SerieFormat.LineProperties.LineColor = Color.DarkBlue;
//Set second serie
var productB = chart.Series.Add("Cumulatief opstal cash-flow");
productB.Values = _worksheet.Range[++row, 2, row, column];
productB.CategoryLabels = _worksheet.Range[1, 2, 1, column];
productB.SerieFormat.LineProperties.LineColor = Color.Red;
//total
var productC = chart.Series.Add("Totaal");
productC.Values = _worksheet.Range[++row, 2, row, column];
productC.CategoryLabels = _worksheet.Range[1, 2, 1, column];
productC.SerieFormat.LineProperties.LineColor = Color.Green;