aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/DataVizBox.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2024-04-16 17:02:23 -0400
committersrichman333 <sarah_n_richman@brown.edu>2024-04-16 17:02:23 -0400
commitb98f3cb1c0e356c318e4d629e8baa05648c153e2 (patch)
tree874a30d28aa6521f6ebd620715199c0b18a48ccf /src/client/views/nodes/DataVizBox/DataVizBox.tsx
parent982991ca69cd7f844680949ed160e678f89050fc (diff)
makes histogram on transfer to text
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DataVizBox.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/DataVizBox.tsx3
1 files changed, 1 insertions, 2 deletions
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;
};