ScatterCharts only support number type axes. If you need to use Dates, you will have to use a LineChart (which you can make look like a ScatterChart by setting the lineWidth option to 0 and the pointSize option to something larger than 0).
On Monday, May 13, 2013 3:35:17 PM UTC-4, Mike Dylan wrote: > > I need to create a scatter plot with 30 seconds data as below: > > head(y,20) > DATE CPU > 1 2013-05-08 03:14:30 42 > 2 2013-05-08 03:15:00 45 > 3 2013-05-08 03:15:30 45 > 4 2013-05-08 03:16:00 44 > 5 2013-05-08 03:16:30 44 > 6 2013-05-08 03:17:00 44 > 7 2013-05-08 03:17:30 43 > 8 2013-05-08 03:18:00 44 > 9 2013-05-08 03:18:30 43 > 10 2013-05-08 03:19:00 37 > 11 2013-05-08 03:19:30 40 > 12 2013-05-08 03:20:00 39 > 13 2013-05-08 03:20:30 42 > 14 2013-05-08 03:21:00 44 > 15 2013-05-08 03:21:30 43 > 16 2013-05-08 03:22:00 45 > 17 2013-05-08 03:22:30 41 > 18 2013-05-08 03:23:00 39 > 19 2013-05-08 03:23:30 38 > 20 2013-05-08 03:24:00 37 > > I tried this: > > cpu<-gvisScatterChart(y) > > I get this error, any ideas? > > Error in gvis(type = type, checked.data, options = options, chartid = > chartid, : > Only the following data types are allowed: number > However, DATE is of type datetime > -- 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.
