I'm using 
gwt-visualization<https://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted>
 to 
display some Google Charts <https://developers.google.com/chart/>.
Everything works fine except that I can't set up a continuous 
X-axis<https://developers.google.com/chart/interactive/docs/customizing_axes#Discrete_vs_Continuous>
 for 
my column chart. From my understanding, I only need to define the first 
column of the chart to NOT be STRING - but I always end up with a discrete 
X-axis.

Here's what I do:

DataTable dataTable = DataTable.create();
dataTable.addRows(rawData.getNumberOfRows());
dataTable.addColumn(DATE, "time interval");for (Category category : 
rawData.getCategories()) {
    dataTable.addColumn(NUMBER, category.getName());}
int row = 0;for (Date month : rawData.getMonths()) {
    dataTable.setValue(row++, 0, month);}
// set other data for categories

Is there something wrong with what I'm doing? Or does the Java library not 
support this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to