Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
Hi,
Could you explain again (with an example) how to add my DataProvider class ?
I don't undertand !
Thanks,
JB
-
Ext User
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
-
Sencha User
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)
-
24 Feb 2010, 12:56 AM
#14
Ext User
I've just came across this bug, so it doesn't seem to be fixed in 2.1.1?
-
Sencha User
No....
GXT-team: Is there a reason for not fixing this one ??
-Martin
-
It will be fixed with the next release. No need to bump it over and over again. Its quite minor.
-
24 Feb 2010, 10:48 AM
#17
This issue is now assigned in our tracking software and will be resolved shortly.
-
13 Jul 2010, 11:44 PM
#18
Ext User
This doesn't seem to have been fixed in 2.1.3?
-
14 Jul 2010, 12:47 AM
#19
-
Ext User
Is there a reason why not? My understanding was the patch builds included all the latest available bug fixes?