aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/nodes/DataVizBox/DataVizBox.tsx5
-rw-r--r--src/client/views/pdf/GPTPopup/GPTPopup.tsx6
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} />
</>
) : (