Skip to content

Commit cd33241

Browse files
committed
make geom_bar() default to textposition='none'; approve new vdiffr 0.4 + plotly.js 2.0 baselines
1 parent f52c111 commit cd33241

File tree

335 files changed

+333
-355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+333
-355
lines changed

R/layers2traces.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,11 @@ geom2trace.GeomBar <- function(data, params, p) {
736736
frame = data[["frame"]],
737737
ids = data[["ids"]],
738738
type = "bar",
739+
# plotly.js v2.0 changed default to textposition='auto', meaning
740+
# text will display by default, which makes sense for plot_ly() maybe,
741+
# but not ggplotly()
742+
# https://github.com/plotly/orca/issues/374
743+
textposition = "none",
739744
marker = list(
740745
autocolorscale = FALSE,
741746
color = toRGB(

inst/docker/Dockerfile.vtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ EXPOSE 3838
8585

8686
ARG CRANCACHE=1
8787
RUN R -e "update.packages(ask=FALSE)"
88-
RUN R -e "remotes::install_github('r-lib/vdiffr')"
88+
RUN R -e "remotes::install_github('r-lib/vdiffr@v0.4.0')"
8989

9090
# install any new dependencies, then either manage cases (the default) or run tests
9191
# note the workaround to get docker to run a proper exit status when there are testthat errors

tests/figs/abline/cookbook-axes-multiple-abline.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/abline/cookbook-axes-single-abline.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/area/area-area-fillcolor.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/area/area-simple.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/area/area-traces-order.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/axes/ticktext-linebreaks-no-linebreaks.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)