Using StackGroup with bar charts
Posted: Thu Jul 30, 2009 8:26 pm
I am trying to create a chart with 2 sets of data. Each set has 2 bars which I would like to have in front of each other but then I want the sets to be side by side. I am trying to use StackGroup but cannot get the layout I want. Here is a sample of what I have:
Is it possible to have the ngBar in front of the totalBar but then have the StackGroups side by side?
Code: Select all
for( int i = 1; i <= 2; i++ )
{
Bar totalBar = new Bar( wc.Chart);
totalBar.StackGroup = i;
totalBar.MultiBar = MultiBars.None;
// (Populate bar with data)
Bar ngBar = new Bar( wc.Chart);
ngBar.StackGroup = i;
ngBar.MultiBar = MultiBars.None;
// (Populate bar with data)
}