java - How to draw continuous charts with gwt-visualization -


i'm using gwt-visualization display google charts.
works fine except can't set continuous x-axis column chart. understanding, need define first column of chart not string - end discrete x-axis.

here's do:

datatable datatable = datatable.create(); datatable.addrows(rawdata.getnumberofrows()); datatable.addcolumn(date, "time interval"); (category category : rawdata.getcategories()) {     datatable.addcolumn(number, category.getname()); }  int row = 0; (date month : rawdata.getmonths()) {     datatable.setvalue(row++, 0, month); }  // set other data categories 

is there wrong i'm doing? or java library not support this?

this issue has been solved on google groups asgallant (a true hero of google visualization support):

asgallant's comment:

that sounds wrong chart package getting loaded. can post javascript produced code (open in browser, view source, , copy here)?

skirsch's response:

ah well, great hint. load "areachart" instead of "corechart". seems latest version available via maven dates 2009, being outdated.

answer

make sure loading appropriate chart package, otherwise cannot use continuous axes.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -