Hello Hasan,
Thank you for writing back.
As it was explained in the previous reply, a better option would be using elements instead of controls. Here is a sample code snippet how to add a
RadChartElement with two
BarSeries:
public
RadForm1()
{
InitializeComponent();
RadLiveTileElement radLiveTileElement1 =
new
RadLiveTileElement();
this
.radPanorama1.RowsCount = 2;
radLiveTileElement1.RowSpan = 2;
radLiveTileElement1.ColSpan = 4;
RadChartElement chart =
new
RadChartElement();
BarSeries barSeries =
new
BarSeries(
"Performance"
,
"RepresentativeName"
);
barSeries.Name =
"Q1"
;
barSeries.DataPoints.Add(
new
CategoricalDataPoint(177,
"Harley"
));
barSeries.DataPoints.Add(
new
CategoricalDataPoint(128,
"White"
));
barSeries.DataPoints.Add(
new
CategoricalDataPoint(143,
"Smith"
));
barSeries.DataPoints.Add(
new
CategoricalDataPoint(111,
"Jones"
));
barSeries.DataPoints.Add(
new
CategoricalDataPoint(118,
"Marshall"
));
chart.View.Series.Add(barSeries);
BarSeries barSeries2 =
new
BarSeries(
"Performance"
,
"RepresentativeName"
);
barSeries2.Name =
"Q2"
;
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(153,
"Harley"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(141,
"White"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(130,
"Smith"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(88,
"Jones"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(109,
"Marshall"
));
chart.View.Series.Add(barSeries2);
radLiveTileElement1.Items.Add(chart);
this
.radPanorama1.Items.Add(radLiveTileElement1);
}
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik by Progress