ululalbab / google-motion-charts-with-r

Automatically exported from code.google.com/p/google-motion-charts-with-r
0 stars 0 forks source link

Date format not taken correctly #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a daily data with the date format YYYY-MM-DD. But when i create the 
Annotated time line chart the x-axis is populated with yearly values starting 
from 1920. I have set the date.format parameter as "%Y/%m/%d". 

I am using windows with R version 3.1.0

Please let me know if you need any more info. Looking forward for the reply.

Thanks

Original issue reported on code.google.com by puneet28...@gmail.com on 20 Jan 2015 at 1:46

GoogleCodeExporter commented 9 years ago
Please provide a minimal reproducible example.

Original comment by markus.g...@googlemail.com on 20 Jan 2015 at 6:34

GoogleCodeExporter commented 9 years ago
> head(R_product_WO1row_HQ)
    ProductName Date_Updated SumQuantityOrdered
  BSB013NE2LXI   2014-01-17            5930000
  BSB013NE2LXI   2014-01-21            6505000
  BSB013NE2LXI   2014-01-22            6470000
  BSB013NE2LXI   2014-01-23            6470000
  BSB013NE2LXI   2014-01-24            6465000
  BSB013NE2LXI   2014-01-27            6480000
>
> AnnoTimeLine_product_HQ  <- gvisAnnotatedTimeLine(R_product_WO1row_HQ, 
+                                                   datevar="Date_Updated",
+                                                   
numvar="SumQuantityOrdered", 
+                                                   idvar="ProductName",
+                                                   options=list(width=1300, 
height=450)
+ )

> #the result is in the attached file. I have highlighted that the starting 
point  for the x-axis is 1920. The data in my data frame is from 2014, Jan to 
2014, Nov. 
Also if the idvar has 20 different factors, how to arrange them vertically 
rather then horizontally as they are currently arranged.

Original comment by puneet28...@gmail.com on 21 Jan 2015 at 8:36

Attachments:

GoogleCodeExporter commented 9 years ago
Issue fixed. Thanks.

Original comment by puneet28...@gmail.com on 21 Jan 2015 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by markus.g...@googlemail.com on 21 Jan 2015 at 7:56