Stacked bar chart with redundant series


I want to represent the evolution status of a component witch can be working, not working, suspended or disconnected.For this reason, I intend to use the stacked bar chart to get something like the picture below.

The problem is that the bar chart dose not support many appearances of the same “Serie”. One possible solution is to add many series with same color using barChart.addSeries() to get the same result.

I wonder if there is a better way.
Would you please help me ?


This is the right way you found. There is no other solution