Open HershGupta opened 7 years ago
Hi,
When formatting the x-axis as a date, the y mouseover is no longer displayed. Below is an example showing this.
Dataset:
> head(thd) date hits 1 2012-05-06 68 2 2012-05-13 69 3 2012-05-20 70 4 2012-05-27 68 5 2012-06-03 67 6 2012-06-10 67
> str(thd) 'data.frame': 260 obs. of 2 variables: $ date: Date, format: "2012-05-06" "2012-05-13" "2012-05-20" ... $ hits: int 68 69 70 68 67 67 67 68 69 66 ...
Graph, without x-axis formatted as date:
> thd %>% mjs_plot(x = date, y = hits)%>% + mjs_line() %>% + mjs_labs(x = "Date", y = "Search Hits")
Graph, with x-axis formatted as date:
> thd %>% mjs_plot(x = date, y = hits)%>% + mjs_line() %>% + mjs_axis_x(xax_format = "date") %>% + mjs_labs(x = "Date", y = "Search Hits")
As you can see, the y-axis mouseover (hits) is no longer visible once the x-axis is formatted as a date.
R version 3.4.0 metricsgraphics_0.9.0
I am having the same issue.
My session info:
R version 3.3.3 (2017-03-06) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 metricsgraphics_0.9.0
Hi,
When formatting the x-axis as a date, the y mouseover is no longer displayed. Below is an example showing this.
Dataset:
Graph, without x-axis formatted as date:
Graph, with x-axis formatted as date:
As you can see, the y-axis mouseover (hits) is no longer visible once the x-axis is formatted as a date.
R version 3.4.0 metricsgraphics_0.9.0