You found a bug! We've classified it as
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
Sencha Premium Member
GXT Chart with BarSeries generates a invalid SVG (rect without height)
We found a problem when we use BarSeries in Chart.
When the series has a big diference between values, the scala makes the minor value disappear completely in chart. This only happens when the BarSeries is configured to column.
In this case, the rect that represents that value in chart will be inserted with height 0.
That causes a lot of problems, mainly when you use some framework as Batik to export the generated SVG to a Image.
The problem is in class com.sencha.gxt.chart.client.chart.series.BarSerie, line 788, version 3.0.1:
When the max value is zero, the rect isn't in SVG.
rect.setHeight(Math.max(rect.getHeight() - diff, 0));
A possible workaround is change the line to:
Was this problem reported before?
rect.setHeight(Math.max(rect.getHeight() - diff, 0.1));
Is there another workaround?