Caused by: com.google.gwt.user.client.ui.AttachDetachException: One or more exceptions caught, see full set in UmbrellaException#getCauses
at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:87)
at com.google.gwt.user.client.ui.Panel.doAttachChildren(Panel.java:170)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:340)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:470)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:127)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:97)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
at com.example.client.FacultyDashboard.onModuleLoad(FacultyDashboard.java:138)
... 9 more
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): 'type' is undefined
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at org.moxieapps.gwt.highcharts.client.BaseChart.nativeRenderChart(BaseChart.java)
at org.moxieapps.gwt.highcharts.client.BaseChart.onLoad(BaseChart.java:1844)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:345)
at com.google.gwt.user.client.ui.AttachDetachException$1.execute(AttachDetachException.java:34)
at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:74)
... 16 more
Any suggestions are greatly appreciated. Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am attempting to set the DataLabel for each point on a scatter chart to the series name. It works fine with HighCharts using following code:
plotOptions: {
scatter: {
dataLabels: {
color: 'rgb(0,0,0)',
formatter: function() {
return this.series.name;
},
enabled: true
},
marker: {
radius: 5,
symbol: "circle",
states: {
hover: {
enabled: true,
lineColor: 'rgb(100,100,100)'
}
}
},
states: {
hover: {
marker: {
enabled: false
}
}
}
}
}
Here is how I am trying to do it using org.moxieapps.gwt.highcharts:
myChart.setScatterPlotOptions(new ScatterPlotOptions()
.setDataLabels(new DataLabels()
.setEnabled(true)
.setAlign(Labels.Align.CENTER)
.setFormatter(new DataLabelsFormatter() {
public String format(DataLabelsData dataLabelsData) {
return dataLabelsData.getSeriesName();
}
})
)
But, I get the following error:
Caused by: com.google.gwt.user.client.ui.AttachDetachException: One or more exceptions caught, see full set in UmbrellaException#getCauses
at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:87)
at com.google.gwt.user.client.ui.Panel.doAttachChildren(Panel.java:170)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:340)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:470)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:127)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:97)
at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
at com.example.client.FacultyDashboard.onModuleLoad(FacultyDashboard.java:138)
... 9 more
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): 'type' is undefined
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at org.moxieapps.gwt.highcharts.client.BaseChart.nativeRenderChart(BaseChart.java)
at org.moxieapps.gwt.highcharts.client.BaseChart.onLoad(BaseChart.java:1844)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:345)
at com.google.gwt.user.client.ui.AttachDetachException$1.execute(AttachDetachException.java:34)
at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:74)
... 16 more
Any suggestions are greatly appreciated. Thanks!