Zero values on Stacked Bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lightyear
Posts: 1
Joined: Mon Jul 14, 2014 10:08 pm
antibot: No, of course not.

Zero values on Stacked Bar chart

Post by lightyear » Mon Jul 14, 2014 10:23 pm

I have a dataset as such:
Value, Row, ColumnKey : 10, Row1, Col1
Value, Row, ColumnKey : 10, Row2, Col1
Value, Row, ColumnKey : 0, Row1, Col2
Value, Row, ColumnKey : 0, Row2, Col2

If I render a Stacked Horizontal/Vertical Bar chart with this data, I see only one column, with 2 bars of length (=10) stacked in a single column. The other stack with values 0 and 0 is not displayed at all.

How do I make a stacked chart's column with zero values appear?

I have noticed, for a simple bar chart, these 0 values are shown.

Any help is appreciated. Thanks.

Locked