diff options
author | bobzel <zzzman@gmail.com> | 2023-08-26 13:54:43 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-08-26 13:54:43 -0400 |
commit | 3ee5367df2604775b5e004e3aae6b8f5e6adcb7c (patch) | |
tree | e96ef8ce24c3850447537eab77a2ec8108aeff09 /src/client/views/nodes/DataVizBox/components/Histogram.tsx | |
parent | 788fc2d0e200c7dc5b8990f38c9946db67c14d1e (diff) | |
parent | 1108eee6c72b1b7f74a400a7af55c2f71d09c333 (diff) |
Merge branch 'master' into data-visualization-sarah
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/Histogram.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/components/Histogram.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/Histogram.tsx b/src/client/views/nodes/DataVizBox/components/Histogram.tsx index edb1665f2..1d8ab8f2a 100644 --- a/src/client/views/nodes/DataVizBox/components/Histogram.tsx +++ b/src/client/views/nodes/DataVizBox/components/Histogram.tsx @@ -415,8 +415,8 @@ export class Histogram extends React.Component<HistogramProps> { updateBarColors = () => { var svg = this._histogramSvg; - if (svg) svg.selectAll('rect') - .attr('fill', (d: any) => { + if (svg) + svg.selectAll('rect').attr('fill', (d: any) => { var barColor; const barColors = StrListCast(this.props.layoutDoc.dataViz_histogram_barColors).map(each => each.split('::')); barColors.forEach(each => { @@ -428,7 +428,7 @@ export class Histogram extends React.Component<HistogramProps> { }); return barColor ? StrCast(barColor) : StrCast(this.props.layoutDoc.dataViz_histogram_defaultColor); }); - } + }; render() { this.updateBarColors(); |