Hybrid View

    You found a bug! We've classified it as EXTGWT-3286 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    5
    Vote Rating
    0
    cassianofaria is on a distinguished road

      0  

    Default 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:
    PHP Code:
    rect.setHeight(Math.max(rect.getHeight() - diff0)); 
    When the max value is zero, the rect isn't in SVG.
    A possible workaround is change the line to:
    PHP Code:
    rect.setHeight(Math.max(rect.getHeight() - diff0.1)); 
    Was this problem reported before?
    Is there another workaround?

    Regards,
    Cassiano Faria.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,635
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    Thanks for the report! I have opened a new bug in the tracker, though I think that any fix for this will also affect http://www.sencha.com/forum/showthread.php?255584 and vice versa.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar