I've been playing around with mpld3 plotting and am trying to figure out a good way of updating the generated mpld3 plots by supplying a new JSON serialized dictionary. Let's say I've generated my mpld3 plot using some templating engine:
var json_data = {{ mpld3 json serialized using mpld3.fig_to_dict() }}
mpld3.draw_figure("fig01", json_data);
Now I've added a slider with a callback which is meant to update the entire figure using a new JSON generated using the mpld3.fig_to_dict()
call. This PR on mpld3's Github demonstrates how to update and animate individual line elements using a slider but is there any simple way to simply update the entire figure by supplying new json data?