add series to multiple stacks in vaadin charts

Hi:

I want to do an example as the one shown in the demo
http://demo.vaadin.com/charts/#StackedAndGroupedColumn
, but I need to add series that are stacked in both stacks. If this was in this example, I would like to add “Joe” to both genders as needed.

What the example do is create a series, and then add it to a stack:

serie = new ListSeries(“Joe”, new Number { 3, 4, 4, 2, 5 });
serie.setStack(“male”);
conf.addSeries(serie);

But what if some of this data goes into the other stack as well?

Thank!!!

Hi!!!..any replies here??

Hi,

I think the stacking feature only supports series to belong to one stack only.

As a workaround I’d add the “shared series” multiple times and configure its color explicitly to be the same in. Also if you use legend, hide all but on from the cloned series. That should give you something you are after?

cheers,
matti