From b98f3cb1c0e356c318e4d629e8baa05648c153e2 Mon Sep 17 00:00:00 2001
From: srichman333 <sarah_n_richman@brown.edu>
Date: Tue, 16 Apr 2024 17:02:23 -0400
Subject: makes histogram on transfer to text

---
 src/client/views/nodes/DataVizBox/DataVizBox.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/client/views/nodes/DataVizBox/DataVizBox.tsx')

diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.tsx b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
index 24199a5e3..19fde7273 100644
--- a/src/client/views/nodes/DataVizBox/DataVizBox.tsx
+++ b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
@@ -437,7 +437,7 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() im
         embedding.defaultHistogramColor = this.layoutDoc.defaultHistogramColor;
         embedding.pieSliceColors = Field.Copy(this.layoutDoc.pieSliceColors);
         this._props.addDocument?.(embedding);
-        embedding._dataViz_axes = new List<string>([this.axes[1]])
+        embedding._dataViz_axes = new List<string>(axes)
         this.layoutDoc.dataViz_selectedRows = new List<number>(this.records.map((rec, i) => i))
 
         console.log(embedding.x);
@@ -445,7 +445,6 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() im
         console.log(Number(embedding.x) + 100.0)
         embedding.x = Number(embedding.x) + 100.0;
         console.log(embedding.x);
-        // embedding.y = StrCast(Number(embedding.y) + 100);
 
         return true;
     };
-- 
cgit v1.2.3-70-g09d2

