Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1369
Change Row# Label on Column chart
posted

Hi,

This is what I am doing.

DataTable dtTable = new DataTable();

DataColumn dcCol = new DataColumn("INV", typeof(decimal));

dtTable.Columns.Add(dcCol);

dcCol = new DataColumn("JOB", typeof(decimal));

dtTable.Columns.Add(dcCol);

dcCol = new DataColumn("PCD", typeof(decimal));

dtTable.Columns.Add(dcCol);

DataRow drRow = dtTable.NewRow();

drRow[0] = 100;

drRow[1] = 150;

drRow[2] = 75;

dtTable.Rows.Add(drRow);

drRow = dtTable.NewRow();

drRow[0] = 200;

drRow[1] = 50;

drRow[2] = 100;

dtTable.Rows.Add(drRow);

drRow = dtTable.NewRow();

drRow[0] = 100;

drRow[1] = 150;

drRow[2] = 75;

dtTable.Rows.Add(drRow);

 

ultraChart.DataSource = dtTable;

ultraChart.DataBind();

This produces three values in a series and uses the column name as labels for each column within a series.  I have tried using IRenderLabel, which is how I am labeling the Y axis values, to achieve the desired result.  It displays in the bottom of each series Row#0, Row#1, Row#2.  How can I change this?  IRenderLabel changes my column names and I want to be able to keep those as assigned to the datatable.  Thanks for the help.

 

Kashif