diff options
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(); |