Closed GoogleCodeExporter closed 9 years ago
I meant: “All series on a given axis must be of the same data type”
Original comment by peter.n...@unclestock.com
on 17 Oct 2013 at 9:18
I got a little further..
When setting the role via
DataColumn col = DataColumn.create(ColumnType.BOOLEAN);
col.setRole(RoleType.CERTAINTY);
dataTable.addColumn(col);
I get following error:
(Error)
@com.googlecode.gwt.charts.client.DataTable::addColumn(Lcom/googlecode/gwt/chart
s/client/DataColumn;)([JavaScript object(110832)]): Invalid type: function() {
var result = __static(dispId, this);
if (result[0]) {
throw result[1];
} else {
return result[1];
}
}.
Original comment by peter.n...@unclestock.com
on 17 Oct 2013 at 10:32
DataColumn in general doesn't seem to work.
DataTable dataTable = DataTable.create();
//fails:
DataColumn dataColumn = DataColumn.create(ColumnType.STRING);
dataColumn.setLabel("Year");
dataTable.addColumn(dataColumn);
//works:
dataTable.addColumn(ColumnType.STRING, "Year");
Original comment by alexfort...@gmail.com
on 12 Feb 2014 at 9:09
Concerning the javascript error reported above, when using the DataColumn class.
I have been able to work around the problem by changing the following method in
the DataColumn class.
Original Code :
private final native void setType(String type) /*-{
this.type = type.@com.googlecode.gwt.charts.client.ColumnType::getName();
}-*/
Replaced code:
private final native void setType(String type) /*-{
this.type = type;
}-*/
Original comment by darren82...@gmail.com
on 8 Aug 2014 at 9:23
[deleted comment]
[deleted comment]
Cool, would be great to get this in the next build. I don't manage to rebuild
the jar (I'm not used to Maven)
Original comment by peter.n...@unclestock.com
on 8 Aug 2014 at 5:40
Thanks for the patch!
Already commited and scheduled for the next release.
Original comment by rglafo...@gmail.com
on 20 Aug 2014 at 4:19
Original comment by rglafo...@gmail.com
on 20 Aug 2014 at 4:20
thanks for the patch.
this worked too:
extend DataTable and add and use this method:
public final native int addCertaintyColumn()/*-{
return this.addColumn({type:'boolean',role:'certainty'});
}-*
/;
see
http://stackoverflow.com/questions/11979871/gwt-chart-api-googlecode-how-to-set-
roletype-to-a-column-of-a-datatable
Original comment by peter.n...@unclestock.com
on 26 Aug 2014 at 11:29
Original comment by rglafo...@gmail.com
on 3 Sep 2014 at 11:07
Original issue reported on code.google.com by
peter.n...@unclestock.com
on 17 Oct 2013 at 8:30