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 | |
parent | b98f3cb1c0e356c318e4d629e8baa05648c153e2 (diff) |
visualize button
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/DataVizBox/DataVizBox.tsx | 5 | ||||
-rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.tsx b/src/client/views/nodes/DataVizBox/DataVizBox.tsx index 19fde7273..dbba9c7f3 100644 --- a/src/client/views/nodes/DataVizBox/DataVizBox.tsx +++ b/src/client/views/nodes/DataVizBox/DataVizBox.tsx @@ -439,12 +439,7 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() im this._props.addDocument?.(embedding); embedding._dataViz_axes = new List<string>(axes) this.layoutDoc.dataViz_selectedRows = new List<number>(this.records.map((rec, i) => i)) - - console.log(embedding.x); - console.log(Number(embedding.x)); - console.log(Number(embedding.x) + 100.0) embedding.x = Number(embedding.x) + 100.0; - console.log(embedding.x); return true; }; 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} /> </> ) : ( |