Hi,
I have been trying to do animation in Dash for Julia using frames (see the Simple Play Button Demo at Intro to animations in Python) . I managed to make that demo work for Dash in Python but after translating it to Dash for Julia I had no luck. The code is as follows:
using Dash, DashHtmlComponents, DashCoreComponents
app = dash()
frames = [
Dict(:data => [Dict(:x => [1, 2], :y => [1, 2])]),
Dict(:data => [Dict(:x => [1, 4], :y => [1, 4])]),
Dict(:data => [Dict(:x => [3, 4], :y => [3, 4])]),
]
play_button = [
Dict(
:type => "buttons",
:buttons => [Dict(:label => "Play", :method => "animate", :args => [nothing])],
),
]
layout = Dict(
:xaxis => Dict(:range => [0, 5], :autorange => false),
:yaxis => Dict(:range => [0, 5], :autorange => false),
:updatemenus => [
Dict(
:type => "buttons",
:buttons => [Dict(:label => "Play", :method => "animate", :args => [nothing])],
),
],
)
f0 = [Dict(:x => [0, 1], :y => [0, 1])]
fig = Dict(:data => f0, :layout => layout)
app.layout = html_div([html_h4("Animation"), dcc_graph(id = "graph1", figure = fig)])
run_server(app, "0.0.0.0", debug = true)```
Hopefully someone will be able to see something I am missing
Thanks!