diff options
| author | srichman333 <sarah_n_richman@brown.edu> | 2024-04-16 17:43:06 -0400 |
|---|---|---|
| committer | srichman333 <sarah_n_richman@brown.edu> | 2024-04-16 17:43:06 -0400 |
| commit | 17cca384290a98b28c4f4a4d6bc4cf5edaef4573 (patch) | |
| tree | f677f1cae546eb09c6d7ea90b250cd9ed5b9d189 /src/client/views/pdf/GPTPopup | |
| parent | b98f3cb1c0e356c318e4d629e8baa05648c153e2 (diff) | |
visualize button
Diffstat (limited to 'src/client/views/pdf/GPTPopup')
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
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} /> </> ) : ( |
