From 89df126b1ed94aa734e8be947faa3b5acf760782 Mon Sep 17 00:00:00 2001 From: Austin Godber Date: Tue, 12 Aug 2025 15:50:42 -0700 Subject: [PATCH] fix click on point --- app.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 6a60761..f6fca40 100644 --- a/app.py +++ b/app.py @@ -259,7 +259,15 @@ def display_click_data(clickData, data): if not clickData or not data: return "Click on a point to see details" - point_index = clickData['points'][0]['pointIndex'] + # Get point index - try different possible keys + point_data = clickData['points'][0] + if 'pointIndex' in point_data: + point_index = point_data['pointIndex'] + elif 'pointNumber' in point_data: + point_index = point_data['pointNumber'] + else: + return "Could not identify clicked point" + doc = data['documents'][point_index] return dbc.Card([