[]
Gets the parent IChart of the data table.
Use this property to access the chart that owns the current data table.
IChart Parent { get; }
ReadOnly Property Parent As IChart
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 100},
{"Feb", 120}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
chart.HasDataTable = true;
IChart parentChart = chart.DataTable.Parent;