diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-08-26 17:10:54 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-08-26 17:10:54 -0400 |
commit | 9154e0cfe279076d5148aad905846f18f2bab95e (patch) | |
tree | 129838de7eff400cc35fa4df609bf42113698dd2 /src/client/views/nodes/DataVizBox/components/PieChart.tsx | |
parent | 3ee5367df2604775b5e004e3aae6b8f5e6adcb7c (diff) |
empty rows fix
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/PieChart.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/components/PieChart.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/PieChart.tsx b/src/client/views/nodes/DataVizBox/components/PieChart.tsx index de6263198..200e51240 100644 --- a/src/client/views/nodes/DataVizBox/components/PieChart.tsx +++ b/src/client/views/nodes/DataVizBox/components/PieChart.tsx @@ -52,7 +52,7 @@ export class PieChart extends React.Component<PieChartProps> { // organized by specified number percentages/ratios if one column is selected and it contains numbers // otherwise, assume data is organized by categories @computed get byCategory() { - return this.props.axes.length === 1 || !/\d/.test(this.props.records[0][this.props.axes[0]]); + return !/\d/.test(this.props.records[0][this.props.axes[0]]); } // filters all data to just display selected data if brushed (created from an incoming link) @computed get _pieChartData() { |