Skip to content

[Use of react!] #497

Open
Open
@jake-w-liu

Description

@jake-w-liu

The correct method of using react! is

react!(fig, fig.plot.data, fig.plot.layout)

but I found that using

react!(fig.plot, fig.plot.data, fig.plot.layout)

does not have a method error. And also using redraw! doesn't update the plot.

The following is the code I used for the test:

using PlotlyJS
x = [1, 2, 3]
y = [1, 4, 7]
tr = scatter(x=x, y=y,)
fig = plot(tr)

# change data
fig.plot.data[1][:y][3] = 0 # == y[3] = 0
react!(fig.plot, fig.plot.data, fig.plot.layout) # not correct, but no error text in the terminal
redraw!(fig) # also does not update the plot
display(fig)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions