diff options
| author | bobzel <zzzman@gmail.com> | 2024-02-15 10:18:51 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-02-15 10:18:51 -0500 |
| commit | 6641de1eec4ee71fa08baa0600d0dcb2a3b03a4a (patch) | |
| tree | f2080509c946bea5d37e5ec817a5d05cb3901269 /src/client/views/nodes/DataVizBox/components/PieChart.tsx | |
| parent | 46f5d21b9b1895698f4b46aa43f7e016f7cfd464 (diff) | |
removed unused npm pacakages for mapbox geocoder. fixed setting empty field in histo/line/pie stuff.
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/PieChart.tsx')
| -rw-r--r-- | src/client/views/nodes/DataVizBox/components/PieChart.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/PieChart.tsx b/src/client/views/nodes/DataVizBox/components/PieChart.tsx index 1259a13ff..a922a200b 100644 --- a/src/client/views/nodes/DataVizBox/components/PieChart.tsx +++ b/src/client/views/nodes/DataVizBox/components/PieChart.tsx @@ -331,9 +331,9 @@ export class PieChart extends ObservableReactComponent<PieChartProps> { }; render() { - var titleAccessor: any = ''; - if (this._props.axes.length == 2) titleAccessor = 'dataViz_pie_title' + this._props.axes[0] + '-' + this._props.axes[1]; - else if (this._props.axes.length > 0) titleAccessor = 'dataViz_pie_title' + this._props.axes[0]; + var titleAccessor: any = 'dataViz_pie_title'; + if (this._props.axes.length == 2) titleAccessor = titleAccessor + this._props.axes[0] + '-' + this._props.axes[1]; + else if (this._props.axes.length > 0) titleAccessor = titleAccessor + this._props.axes[0]; if (!this._props.layoutDoc[titleAccessor]) this._props.layoutDoc[titleAccessor] = this.defaultGraphTitle; if (!this._props.layoutDoc.dataViz_pie_sliceColors) this._props.layoutDoc.dataViz_pie_sliceColors = new List<string>(); var selected: string; |
