Nevron Forum

Stacked bar charts and chart grid control

https://www.nevron.com/Forum/Topic9259.aspx

By Stephen Vilim - Tuesday, July 7, 2015

I'm used a chart grid control with a bunch of stacked bar charts series.  However the problem is that I want the chart grid control to view one whole column of the stacked bars as its own series.  Instead it is taking one slice from each of the stacked bars and making that the series (which is technically correct).  Is there anyway to make it do this?

For example:

X X X X
Y Y Y Y
Z Z Z Z

Right now it is taking ZZZZ and YYYY and XXXX and viewing them as a series and displaying the data like that.  Is there a way to force it to take XYZ XYZ XYZ XYZ and make four series like that?
By Nevron Support - Thursday, July 9, 2015

Hi Stephen,

There is no such option however you can easily emulate it - to do this you need to do the following:

1. Calculate the maximum number of stacked bar for all columns.
2. Create that many series.
3. Feed data to each column and fill the remaining series in that column with empty values (double.NaN).

Hope this helps - let us know if you meet any problems or have any questions.