| Issue 37: | Date format not taken correctly |
‹ Prev
37 of 37
|
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Jan 21, 2015
> 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.
Jan 21, 2015
Issue fixed. Thanks.
Jan 21, 2015
(No comment was entered for this change.)
Status:
Invalid
|