My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 37: Date format not taken correctly
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Jan 2015


 
Reported by puneet28...@gmail.com, Jan 20, 2015
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

Jan 20, 2015
Project Member #1 markus.g...@googlemail.com
Please provide a minimal reproducible example.
Jan 21, 2015
#2 puneet28...@gmail.com
> 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.
annotated time line chart.PNG
40.9 KB   View   Download
Jan 21, 2015
#3 puneet28...@gmail.com
Issue fixed. Thanks.
Jan 21, 2015
Project Member #4 markus.g...@googlemail.com
(No comment was entered for this change.)
Status: Invalid

Powered by Google Project Hosting