You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a vector of POSIXct values with sub-second increments, then setting dynamicTicks to TRUE aggregates all the values by the second.
library(ggplot2)
library(plotly)
#> #> Attaching package: 'plotly'#> The following object is masked from 'package:ggplot2':#> #> last_plot#> The following object is masked from 'package:stats':#> #> filter#> The following object is masked from 'package:graphics':#> #> layoutfoo<-data.frame(x= as.POSIXct("1970-01-01", tz="UTC") + (0:999) /10,
y= sin((0:999) *8*pi/1000))
p<- ggplot(foo, aes(x, y)) +
geom_line()
ggplotly(p)
* Fix#1870 by explicitly including milliseconds when converting to JSON
* Added visual test for #1870
* Fix POSIXt format for plotly JSON
According to plotly documentation (https://plotly.com/chart-studio-help/date-format-and-time-series/): "Chart Studio’s date format is 'yyyy-mm-dd HH:MM:SS.ssssss'.", so time_format in jsonlite::toJSON() changed to match.
* Fixing time format in test re: #1871
* Update test image for line-milliseconds.svg
If I have a vector of POSIXct values with sub-second increments, then setting dynamicTicks to TRUE aggregates all the values by the second.
Created on 2020-10-24 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: