I know that to set the row and column labels you do this
ctrlUltraChart.Data.SetRowLabels(strArray);
ctrlUltraChart.Data.SetColumnLabels(strArray);
and to get the labels that have been manually set you use
string[ strColLabels = ctrlUltraChart.Data.GetColumnLabels();
but how do I get the labels that are automatically set by the ultrachart?
The default labels can only be extracted before you set them manually, so this approach may or may not work depending on when you set the labels.
protected void UltraChart1_FillSceneGraph(object sender, FillSceneGraphEventArgs e){ IChartData chartData = e.ChartCore.GetChartLayer().GetData(); int rowCount = chartData.GetRowCount(); int colCount = chartData.GetColumnCount(); for (int i = 0; i < rowCount; i++) rowLabels.Add(chartData.GetRowLabel(i).ToString()); for (int i = 0; i < colCount; i++) columnLabels.Add(chartData.GetColumnLabel(i).ToString());}
Is there anyway to get that data outside of the FillSceneGraph method because I'm using 6.1 and there doesn't seem to be a FillSceneGraph...sorry for not mentioning this earlier
You would have to implement a custom layer, as described in this help link to get access to ChartCore:http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Chart_Writing_a_Layer_Class.html