Hello,
I wonder if it is possible to combine stack and cluster bars to have something like the image that I am attaching.
So far I can create Bar series with combine mode stack or cluster but not both.
I am creating the series in the code behind like this:
Thanks in advance.
Alberto
I wonder if it is possible to combine stack and cluster bars to have something like the image that I am attaching.
So far I can create Bar series with combine mode stack or cluster but not both.
I am creating the series in the code behind like this:
BarSeries barSer =
new
BarSeries();
barSer.ShowLabels =
true
;
barSer.CombineMode = ChartSeriesCombineMode.Stack;
// or
BarSeries barSer =
new
BarSeries();
barSer.ShowLabels =
true
;
barSer.CombineMode = ChartSeriesCombineMode.Cluster;
foreach
(DataRow dr
in
dtData.Rows)
{
barSer.DataPoints.Add(
new
CategoricalDataPoint() { Category = dr[
"Name"
], Label =
string
.Format(
"{0:N}"
, dr[
"Value"
]), Value =
double
.Parse(dr[
"Value"
].ToString()) });
}
Thanks in advance.
Alberto