When moving the cursor over the line I get the wrong data displayed in the top right corner. For now it seems to me that the problem is only encountered with format="plain".
Example code:
h <- data.frame(a = c(4:8), b = seq(2000, 6000, 1000), d = rep(4000, 5))
h %>%
mjs_plot(x = a,
y = b) %>%
mjs_add_line(d) %>%
mjs_axis_x(xax_format = "plain")
The problem can be tracked on printscreen: both lines are named 'a' and contain undefined as x-values.
With X variable of class Date there seems to be no problem.
Hi,
When moving the cursor over the line I get the wrong data displayed in the top right corner. For now it seems to me that the problem is only encountered with
format="plain".
Example code:
The problem can be tracked on printscreen: both lines are named 'a' and contain undefined as x-values.
With X variable of class Date there seems to be no problem.
str() of the same data, but now a contains dates
Works fine: