I try a way to get mouse position by adding mouse listener, and upload it
https://pypi.python.org/pypi?%3Aaction=display&name=mydcc&version=0.0.3
you can pip install it
Usage :
app.layout = html.Div([
mydcc.Listener(id = "uuu"),
dcc.Graph( id = 'ggg',
figure = { 'data': [ {'x': [1, 2, 3], 'y': [4, 1, 2]} ]
}
)
])
@app.callback(
Output('uuu', 'aim'),
[Input('ggg', 'id')])
def update_figure(x):
return x