I hardcode Xaxis values of A, B, C and would like to add series coresponding to each of thsoe a b c values,
Unfortunately it always ends up adding all of the values to only one of the X axis items.
The fallowing code is the exert from my backend object
/radChartObj.PlotArea.XAxis.Items.Add(new ChartAxisItem("C"));
//radChartObj.PlotArea.XAxis.Items.Add(new ChartAxisItem("B"));
//radChartObj.PlotArea.XAxis.Items.Add(new ChartAxisItem("A"));
foreach (CallCenterStatistics callCenterStatObj in lstCallCenterStats)
{
chartSeriesObj =
new ChartSeries();
chartSeriesObj.Type =
ChartSeriesType.Bar;
chartSeriesObj.Name = lstChars[count] +
"-" + callCenterStatObj.Description;
chartSeriesObj.AddItem(
Convert.ToInt64(callCenterStatObj.Value), callCenterStatObj.Value + " - " + lstChars[count]);
chartSeriesObj.Items[0].Label.TextBlock.Appearance.TextProperties.Color =
Color.White;
chartSeriesObj.Items[0].Label.TextBlock.Appearance.TextProperties.Font =
new System.Drawing.Font("Arial", 8,FontStyle.Bold);
chartSeriesObj.Items[0].Label.TextBlock.Appearance.AutoTextWrap =
AutoTextWrap.True;
chartSeriesObj.Items[0].Label.Appearance.LabelLocation =
StyleSeriesItemLabel.ItemLabelLocation.Inside;
chartSeriesObj.Items[0].Label.Appearance.Position.AlignedPosition =
AlignedPositions.Left;
chartSeriesObj.Items[0].Appearance.FillStyle.MainColor =
Color.SeaGreen;
chartSeriesObj.Items[0].Appearance.FillStyle.FillType =
FillType.Solid;
count ++ ;
radChartObj.Series.Add(chartSeriesObj);
Any ideas what im doing wrong with this one?
Thanks!