Skip to content

Figures need to be "boxed" #341

Closed
Closed

Description

@cpsievert

Consider what happens when I try to obtain and print this plot

https://plot.ly/~cpsievert/558

get_figure("cpsievert", "558")

screen shot 2015-12-11 at 4 33 58 pm

That's because we're currently not "boxing special properties" in the figure object. That is, these fields to have an AsIs class attached so our JSON converter knows they should be arrays of length one as opposed to scalars

f <- get_figure("cpsievert", "558")
l <- plotly_build(f)
l$data[[3]][c('x', 'y')]
$x
[1] "0"

$y
[1] 14

Activity

  1. added a commit that references this issue on Dec 14, 2015
    8cd2da0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions