Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default (GXT 3.0.0 GA) AreaSeries: SeriesItemOverEvent Has Wrong Index and Item

    (GXT 3.0.0 GA) AreaSeries: SeriesItemOverEvent Has Wrong Index and Item


    Version of Ext GWT
    This problem occurs in the recently released GA version of Ext GWT 3.0.0.

    Browser Versions
    Firefox 7
    Internet Explorer 8

    Operating System
    Windows 7 64 bit

    Hardware
    Dell Precision M4500
    8 CPUs – Intel Core i7
    8 GB Memory

    Virtual Machine
    No

    Description
    When using the AreaSeries, the SeriesItemOverEvent has the wrong index and item properties.

    The SeriesItemOverEvent index property has the same value for an entire YField in the AreaSeries, and does not account for the intervals in the TimeAxis. This makes it useless for determining what item to use for the tooltip. In fact, the values of the index range from 0 to 1 less than the total YFields in the AreaSeries. The index is always 0 for the first YField, always 1 for the second Yfield, always 2 for the third YField, and so on.

    Likewise, the SeriesItemOverEvent item property has the same problem. The item is always the first item in the ListStore for the first YField, always the second item in the ListStore for the second YField, always the third item in the ListStore for the third YField, and so on. This makes event item useless for tooltip purposes where you want to include the date corresponding to the TimeAxis interval as well as one or more values from the item.

    We are using a SeriesItemOverHandler so that we can use SafeHtml for the tooltip as the tooltip content needs to support multiple line breaks and custom formatting.

    Run Mode
    Occurs in when deployed to Tomcat (web mode), and when running under Eclipse (dev mode).

    Steps to Reproduce
    The attached file (ColumnChartAreaSeriesToolTipIssue.txt) can be used to demonstrate the problem. After launching the chart, just mouse over the area series and you will see the tooltip issues described above. The attached screen shot (ColumnChartAreaSeriesToolTipIssue.png) show an example of the problem as well.

    The attached file (ColumnChartAreaSeriesToolTipIssueFixed.txt) contains a crude workaround to address this problem (see lines 146 through 158 and 183 through 214). After launching this fixed chart, just mouse over the area series and you will see the tooltips working properly. The attached screen shot (ColumnChartAreaSeriesToolTipIssueFixed.png) show an example of the fix as well.

    Please let me know if I am doing anything wrong in the code in the attached file or if there is a work around.

    Thanks,
    John L

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Thanks for the report. I'll let you know when it is fixed.

  3. #3
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Apparently SeriesItemOutEvent was using getStoreIndex to pass the store item, but Over and Selection were not. With fix in the next release this handler will work the same as your workaround:
    Code:
    areaSeries.addSeriesItemOverHandler(new SeriesItemOverHandler<ItemsPurchased>()
            {
    			@Override
    			public void onSeriesOverItem(SeriesItemOverEvent<ItemsPurchased> event) {
    				
    				String path = event.getValueProvider().getPath(); 
    				itemsPurchased = event.getItem();
    				Date itemDate = itemsPurchased.getDate();
    				double value = event.getValueProvider().getValue(itemsPurchased).doubleValue();
    				
    				NumberFormat numberFormat = NumberFormat.getFormat("#,##0");
    				final String valueFormatted = numberFormat.format(value);
    				String itemDateFormatted = DATE_FORMAT.format(itemDate);
    
    
    				areaSeries.getToolTipConfig().setBodyHtml(SafeHtmlUtils.fromTrustedString(
    						"<span>Date: " + itemDateFormatted + "<br>&nbsp;Path: " + path + "<br>&nbsp;Value: " + valueFormatted + "</span>"));
    				
    				areaSeries.getToolTip().update(areaSeries.getToolTipConfig());
    			}
            });

  4. #4
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    GXT 3.0.1 has been released and contains this fix.

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    18
    Vote Rating
    1
    pragati.rithekar is on a distinguished road

      0  

    Default


    This really helped me. Thanks a ton!

Thread Participants: 2

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