From 17cca384290a98b28c4f4a4d6bc4cf5edaef4573 Mon Sep 17 00:00:00 2001
From: srichman333 <sarah_n_richman@brown.edu>
Date: Tue, 16 Apr 2024 17:43:06 -0400
Subject: visualize button

---
 src/client/views/pdf/GPTPopup/GPTPopup.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/client/views/pdf/GPTPopup/GPTPopup.tsx')

diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
index 706b44aef..686ef9c28 100644
--- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx
+++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
@@ -201,7 +201,12 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> {
                 link_relationship: 'GPT Summary',
             });
         }
+    };
 
+    /**
+     * Creates a histogram to show the correlation relationship that was found
+     */
+    private createVisualization = () => {
         this.createFilteredDoc(this.correlatedColumns);
     };
 
@@ -373,6 +378,7 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> {
                         :(
                         <>
                             <Button tooltip="Transfer to text" text="Transfer To Text" onClick={this.transferToText} color={StrCast(Doc.UserDoc().userVariantColor)} type={Type.TERT} />
+                            <Button tooltip="Create a graph to visualize the correlation results" text="Visualize" onClick={this.createVisualization} color={StrCast(Doc.UserDoc().userVariantColor)} type={Type.TERT} />
                             <Button tooltip="Chat with AI" text="Chat with AI" onClick={this.chatWithAI} color={StrCast(Doc.UserDoc().userVariantColor)} type={Type.TERT} />
                         </>
                     ) : (
-- 
cgit v1.2.3-70-g09d2

