Closed iztokstotl closed 1 year ago
Sys.getlocale (category = "LC_ALL")
[1] "LC_CTYPE=sl_SI.UTF-8;LC_NUMERIC=C;LC_TIME=sl_SI.UTF-8;LC_COLLATE=sl_SI.UTF-8;LC_MONETARY=sl_SI.UTF-8;LC_MESSAGES=sl_SI.UTF-8;LC_PAPER=sl_SI.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=sl_SI.UTF-8;LC_IDENTIFICATION=C"
`data <- data.frame( id = 1:4, content = c("Item one" , "Item two" ,"Ranged item", "Item four"), start = c("2016-01-10", "2017-01-11", "2018-01-20", "2016-02-14 15:00:00"), end = c(NA , NA, "2018-02-04", NA) )
timevis(data)`
That is strange. I can only guess that it's due to some locale settings in your browser or system. This very likely has nothing to do with the R package and is controllable by the javascript. I would suggest looking in https://visjs.github.io/vis-timeline/docs/timeline/ to see if there's some way to change the locale.
I have solved it with:
setOptions(list (locale = c("en"))
That does mean that your browser for some reason doesn't default to english
I am not sure, because the plots from ggplot2 don't have this problem when I use default setup.
That isn't indicative of much, because ggplot has nothing to do with the jacasxript library that runs timevis.
If you look at the documentation for the javascript library (https://visjs.github.io/vis-timeline/docs/timeline/), you can try running one of their simple examples on your machine ans see if it defaults to Cyrillic.
I'm closing this issue because I don't think it is related to the R package. If you find out that the javascript library works correctly but the R package does not, feel free to re-open.
I have tried to use timevis.
When I try to run default timevis(), I get this result ...
Cyrilic is drawn also in other examples ???
How can I solve this ?