Hello all,

When you create a new BarSeries and put only one item at store, that bar will fill all chart space.
This happens with bar or column. I think this isn't a good presentation for a chart.

I think the problem is in com.sencha.gxt.chart.client.chart.series.BarSeries, method calculateBounds.
Here is the groupBarWidth calculus:
Code:
groupBarWidth = barWidth / ((stacked ? 1 : groupBarsLength) * (groupGutter + 1) - groupGutter);
Example, that code could be changed to:
Code:
		if (store.size() <= 1) {
			groupBarWidth = 100;
		} else {
			groupBarWidth = barWidth / ((stacked ? 1 : groupBarsLength) * (groupGutter + 1) - groupGutter);
		}
At method calculatePaths() if is column, this code:
Code:
rect.setX(bbox.getX() + xPadding + i * getBarGirth() * (1 + gutter) + counter * groupBarWidth
              * (1 + groupGutter) * (!stacked ? 1 : 0));
Could be replaced to:
Code:
					if (store.size() <= 1) {
						rect.setX(bbox.getX() + xPadding + groupBarWidth);
					} else {
						rect.setX(bbox.getX() + xPadding + i * getBarGirth() * (1 + gutter) + counter * groupBarWidth * (1 + groupGutter)
								* (!stacked ? 1 : 0));
					}
And if isn't column, this code:
Code:
						rect.setY(bbox.getY() + yPadding + (store.size() - 1 - i) * getBarGirth() * (1 + gutter) + counter * groupBarWidth
								* (1 + groupGutter) * (!stacked ? 1 : 0) + 1);
Could be replaced with:
Code:
					if (store.size() <= 1) {
						rect.setY(bbox.getX() + xPadding + groupBarWidth);
					} else {
						rect.setY(bbox.getY() + yPadding + (store.size() - 1 - i) * getBarGirth() * (1 + gutter) + counter * groupBarWidth
								* (1 + groupGutter) * (!stacked ? 1 : 0) + 1);
					}
Regards,
Cassiano Faria