Hi Rick,
To get the floatbars aligned with the bars, you simply have to place them in two different "series" of clusters:
The first Floatbar series must be in mode "Series" and the following Floatbar series must be in mode "Clustered". Then the first Bar series must be again in mode "Series" and the following Bar series again must be in mode "Clustered". Setting the first Bar series to "Series" mode will make all bars to be placed in a different depth "layer" from the floating bars.
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
for (int i = 0; i < 4; i++)
{
NFloatBarSeries fb = new NFloatBarSeries();
fb.BeginValues.AddRange(new double[] { 11, 7, 12, 8 });
fb.EndValues.AddRange(new double[] { 12, 8, 13, 9 });
fb.DataLabelStyle.Visible = false;
chart.Series.Add(fb);
if (i == 0)
fb.MultiFloatBarMode = MultiFloatBarMode.Series;
else
fb.MultiFloatBarMode = MultiFloatBarMode.Clustered;
}
for (int i = 0; i < 4; i++)
{
NBarSeries bar = new NBarSeries();
bar.Values.AddRange(new double[]{ 10, 5, 10, 5 });
bar.DataLabelStyle.Visible = false;
chart.Series.Add(bar);
if (i == 0)
bar.MultiBarMode = MultiBarMode.Series;
else
bar.MultiBarMode = MultiBarMode.Clustered;
}
Best Regards,
Nevron Support Team