Ah well, that was a great hint. It does actually load the "areachart" instead of the "corechart". Seems like the latest version available via Maven dates back to 2009, being obviously outdated. Thank you!
On Monday, May 20, 2013 5:36:53 PM UTC+2, asgallant wrote: > > That sounds like the wrong chart package is getting loaded. Can you post > the javascript produced by your code (open in a browser, view source, and > copy it here)? > > On Monday, May 20, 2013 11:14:40 AM UTC-4, Sebastian Kirsch wrote: >> >> 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.
