Skip to content

Commit

Permalink
fixes for duplicate loading of histogram data and future.str serializ…
Browse files Browse the repository at this point in the history
…ation in scatter data
  • Loading branch information
Andrew Schonfeld authored and aschonfeld committed Nov 7, 2019
1 parent 934212f commit 26fe80d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dtale/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def get_scatter():
data = data.query(query)

data = data[list(set(cols))].dropna(how='any')
data['index'] = data.index
data[str('index')] = data.index
s0 = data[cols[0]]
s1 = data[cols[1]]
pearson = s0.corr(s1, method='pearson')
Expand Down
8 changes: 3 additions & 5 deletions static/popups/Histogram.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,10 @@ class ReactHistogram extends React.Component {
return false;
}

componentDidUpdate() {
if (!this.props.chartData.visible || this.state.error) {
return;
componentDidUpdate(_prevProps, prevState) {
if (this.state.bins !== prevState.bins) {
this.buildHistogram();
}

this.buildHistogram();
}

componentDidMount() {
Expand Down

0 comments on commit 26fe80d

Please sign in to comment.