aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/DataVizBox.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-08-02 12:37:52 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-08-02 12:37:52 -0400
commit49fa6721e2a7af21db5da339cd3c7d90d3e8bf8b (patch)
tree83f8c81713dfac16d6b60ae25b0fee182ca1441b /src/client/views/nodes/DataVizBox/DataVizBox.tsx
parent719ac430e7f0e338cc8d911813f25a90696aba15 (diff)
linking title bug fix
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DataVizBox.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/DataVizBox.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.tsx b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
index f167346de..9a4de3c36 100644
--- a/src/client/views/nodes/DataVizBox/DataVizBox.tsx
+++ b/src/client/views/nodes/DataVizBox/DataVizBox.tsx
@@ -70,8 +70,7 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
const changedAxes = this.axes.join('') !== StrListCast(data.presDataVizAxes).join('') && (this.layoutDoc._data_vizAxes = new List<string>(StrListCast(data.presDataVizAxes)));
Object.keys(this.layoutDoc).map(key => {
if (key.startsWith('histogram-title') || key.startsWith('histogramBarColors') || key.startsWith('defaultHistogramColor')
- || key.startsWith('lineChart-title') || key.startsWith('pieChart-title')){
- console.log(key)
+ || key.startsWith('lineChart-title') || key.startsWith('pieChart-title') || key.startsWith('pieSliceColors')){
this.layoutDoc['_'+key] = data[key];
}
})
@@ -97,7 +96,7 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
anchor.presDataVizAxes = this.axes.length ? new List<string>(this.axes) : undefined;
Object.keys(this.layoutDoc).map(key => {
if (key.startsWith('histogram-title') || key.startsWith('histogramBarColors') || key.startsWith('defaultHistogramColor')
- || key.startsWith('lineChart-title') || key.startsWith('pieChart-title')){
+ || key.startsWith('lineChart-title') || key.startsWith('pieChart-title') || key.startsWith('pieSliceColors')){
anchor[key] = this.layoutDoc[key];
}
})