Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    0
    OBELIX is on a distinguished road

      0  

    Default


    Hi,

    Could you explain again (with an example) how to add my DataProvider class ?

    I don't undertand !

    Thanks,

    JB

  2. #12
    Ext User
    Join Date
    Mar 2008
    Location
    Berlin, Germany
    Posts
    58
    Vote Rating
    0
    HerrB is on a distinguished road

      0  

    Default


    Sure, assuming you are using Eclipse.

    - Create a new package in your project named "com.extjs.gxt.charts.client.model"
    - Copy the file DataProvider.java from gxt-xy\src\com\extjs\gxt\charts\client\model into the new package
    - Change the methods getMaxYValue and getMinYValue as described above or use this:

    Code:
    protected double getMaxYValue() {
        if (maxYValue == null) {
            return 0d;
        } else {
            return maxYValue;
        }
      }
    
      protected double getMinYValue() {
        if (minYValue == null) {
            return 0d;
        } else {
            return minYValue;
        }
      }
    As the package is equally named, your code wins. But remember: This file/package has to be removed or updated on new GXT versions...

    Regards,

    HerrB

  3. #13
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    0
    OBELIX is on a distinguished road

      0  

    Default


    Hi,

    Thanks, I did it .
    But I always have the same error when I put this line in my code:

    model.setScaleProvider(ScaleProvider.ROUNDED_NEAREST_SCALE_PROVIDER);

    An idea ?

    Thkx,

    JB

    This is the error :

    [ERROR] Unable to load module entry point class com.jblabs.mycharts.client.ChartsLabs (see associated exception for details)
    java.lang.NullPointerException: null
    at com.extjs.gxt.charts.client.model.ChartModel.updateYScale(ChartModel.java:471)
    at com.extjs.gxt.charts.client.Chart.processModel(Chart.java:245)
    at com.extjs.gxt.charts.client.Chart.setChartModel(Chart.java:168)
    at com.jblabs.mycharts.client.ChartNContainer.showChart(ChartNContainer.java:64)
    at com.jblabs.mycharts.client.ChartNContainer.onRender(ChartNContainer.java:51)
    at com.extjs.gxt.ui.client.widget.Component.render(Component.java:1019)
    at com.extjs.gxt.ui.client.widget.Component.onAttach(Component.java:1634)
    at com.extjs.gxt.ui.client.widget.Container.onAttach(Container.java:471)
    at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:393)
    at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
    at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:86)
    at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:80)
    at com.jblabs.mycharts.client.ChartsLabs.onModuleLoad(ChartsLabs.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:326)
    at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:343)
    at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300(BrowserWidgetIE6.java:37)
    at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:77)
    at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:161)
    at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
    at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:264)
    at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:557)
    at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
    at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

  4. #14
    Ext User
    Join Date
    Dec 2007
    Posts
    159
    Vote Rating
    2
    jburnhams is on a distinguished road

      0  

    Default


    I've just came across this bug, so it doesn't seem to be fixed in 2.1.1?

  5. #15
    Sencha User
    Join Date
    Jun 2008
    Posts
    35
    Vote Rating
    0
    MartinElkjaer is on a distinguished road

      0  

    Default


    No....

    GXT-team: Is there a reason for not fixing this one ??

    -Martin

  6. #16
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    It will be fixed with the next release. No need to bump it over and over again. Its quite minor.

  7. #17
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This issue is now assigned in our tracking software and will be resolved shortly.

  8. #18
    Ext User
    Join Date
    Dec 2007
    Posts
    159
    Vote Rating
    2
    jburnhams is on a distinguished road

      0  

    Default


    This doesn't seem to have been fixed in 2.1.3?

  9. #19
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    No it was not.

  10. #20
    Ext User
    Join Date
    Dec 2007
    Posts
    159
    Vote Rating
    2
    jburnhams is on a distinguished road

      0  

    Default


    Is there a reason why not? My understanding was the patch builds included all the latest available bug fixes?

Similar Threads

  1. Replies: 4
    Last Post: 28 Apr 2010, 3:55 AM
  2. [FNR] Exception on tracking hierarchy.
    By nika.setar in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 29 Mar 2010, 8:50 AM
  3. [3.x r5790] Ext.chart.Chart.onDestroy causes exception in IE6
    By jay@moduscreate.com in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 16 Dec 2009, 5:38 AM
  4. Replies: 2
    Last Post: 10 Dec 2009, 9:23 AM
  5. Paging toolBar not doing bind() when store is empty
    By varsha.kothari in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 28 Aug 2008, 6:49 AM

Thread Participants: 6