This question is locked. New answers and comments are not allowed.
protected void CreateStackedbBar()
{
RadChart rcOTDBar = new RadChart();
List<
ChartData
> objList = _objBLL.GetData();
rcOTDBar.DataSource = objList;
rcOTDBar.DataGroupColumn = "Group"; // "Grade A", "Grade B", "Grade C"
rcOTDBar.PlotArea.XAxis.DataLabelsColumn = "ColumnName"; //"Jan", "Feb", "Mar", "Apr"
rcOTDBar.DataBind();
rcOTDBar.Series[0].Type = ChartSeriesType.StackedBar;
rcOTDBar.Series[1].Type = ChartSeriesType.StackedBar;
rcOTDBar.Series[2].Type = ChartSeriesType.StackedBar;
rcOTDBar.Series[3].Type = ChartSeriesType.StackedBar;
this.Controls.Add(rcOTDBar);
}
Hi,
I was trying to create stacked bar programmatically using the code above. The desired result is as attached. However it doesnt seems to show the values using the code attached. Please help.