It should be! You’ll need to set config=dict(editable=True)
inside the dcc.Graph
in order to be able to interactively move the lines around.
The callbacks would be:
Output('graph', 'figure'), [Input('add-line', 'n_clicks')]
and
Output('save-status', 'children'), [Input('save-lines', 'n_clicks')], [State('graph', 'figure')]