When I click on a point in one of my chart the following data is generated: {‘points’: [{‘curveNumber’: 1, ‘pointNumber’: 2, ‘pointIndex’: 2, ‘x’: 2009, ‘y’: 13.8947}]}
So what I need to do is to get the data for curveNumber so I can use it in subsequent callbacks. This post appears to provide the answer, however when I try to follow the example in that post I get an error that the object has no property by that name, i.e.
my_graph = app.layout[‘reading_gap_ethnicity_by_year’]
my_graph.available_properties
[‘id’, ‘responsive’, ‘clickData’, ‘clickAnnotationData’, ‘hoverData’, ‘clear_on_unhover’, ‘selectedData’, ‘relayoutData’, ‘extendData’, ‘restyleData’, ‘figure’, ‘style’, ‘className’, ‘animate’, …]
the ‘figure’ property probably has what i want, but…
f = my_graph[‘figure’]
KeyError
…or…
f = my_graph.figure
AttributeError: ‘Graph’ object has no attribute ‘figure’
What am I doing wrong here?