I'm trying to create a chart with custom x-axis values. Right now, they are defaulting to 1, 2, 3, 4, 5...etc.
I need them to be a specific string value from the datatable. "P 2009, P 2010, P 2010, etc. etc."
There are several things that are dependent on the for loop below (which I left out) which is why I need to keep the for loop.
I cannot bind the series to the datatable. I know that would be much easier, but a lot of functionality is dependent on the for loop below. How may I add the X-axis values?
for (int idx = 0; idx < dtDataTable.Rows.Count; idx++)
I need them to be a specific string value from the datatable. "P 2009, P 2010, P 2010, etc. etc."
There are several things that are dependent on the for loop below (which I left out) which is why I need to keep the for loop.
I cannot bind the series to the datatable. I know that would be much easier, but a lot of functionality is dependent on the for loop below. How may I add the X-axis values?
for (int idx = 0; idx < dtDataTable.Rows.Count; idx++)
{
int iValue = Convert.ToInt32(dtDataTable.Rows[idx][sSeries]);
string sLabel = iValue.ToString("#,#", CultureInfo.InvariantCulture);
csGLFunc.AddItem(iValue, sLabel);
}
this
.RadChart1.Series.Add(csGLFunc);
Any help would be very much appreciated.
Thank you.
Sincerely,
Jeff