-
8 Mar 2013 4:15 AM #1
GXT Chart with BarSeries generates a invalid SVG (rect without height)
GXT Chart with BarSeries generates a invalid SVG (rect without height)
Hello all,
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.PHP Code:rect.setHeight(Math.max(rect.getHeight() - diff, 0));
A possible workaround is change the line to:
Was this problem reported before?PHP Code:rect.setHeight(Math.max(rect.getHeight() - diff, 0.1));
Is there another workaround?
Regards,
Cassiano Faria.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote