Ok, I see it now. You can override the column types by passing a list to the second parameter of the read call, see the description of the read method: http://code.google.com/apis/chart/interactive/docs/dev/dsl_javadocs/com/google/visualization/datasource/util/CsvDataSourceHelper.html
On Monday, March 5, 2012 11:45:27 AM UTC-5, R22MPM wrote: > > Hi, thanks for the reply > > I am using the example here : > http://code.google.com/apis/chart/interactive/docs/dev/dsl_csv.html to > parse the CSV. > > I mentions in the commenting about always assuming the column is string, > so i just need to work out how to change this > > Matt > > On Monday, March 5, 2012 4:40:50 PM UTC, asgallant wrote: >> >> I don't work with the java applets, but if they implemented proper CSV >> parsing, then data types should be determined correctly, as CSV's usually >> have a syntax for handling strings and numbers differently (most often, >> they use quotes around strings, but there is no universal standard for >> CSV's, so YMMV). If your CSV's cells are all getting parsed as strings >> when they should be parsed as numbers, I would look at it's formatting >> first. >> >> On Monday, March 5, 2012 10:55:42 AM UTC-5, R22MPM wrote: >>> >>> I think i can do this by using the following function setColumnProperty, >>> does anyone know the name of the porperty i need to change? i have tried >>> ValueType but no joy >>> >>> Thanks >>> >> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Ex1wLe41T-YJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
