update graphs on new data

main
Joost Wooning 2022-02-15 17:14:19 +01:00
parent 1286f90444
commit abbc68a6b0
3 changed files with 88 additions and 857 deletions

View File

@ -60,9 +60,8 @@
"stream-selector": "^0.1.1",
"streamsaver": "^1.0.1",
"thyming": "^0.1.1",
"vega": "^5.3.4",
"vega-lite": "^3.0.0",
"vega-tooltip": "^0.4.0"
"vega": "^5.0.0",
"vega-lite": "^4.0.0"
},
"devDependencies": {
"@babel/core": "^7.6.2",

View File

@ -192,7 +192,9 @@ export default class CanGraph extends Component {
if (!this.view) {
return true;
}
if (this.state.spec !== nextState.spec) {
if (this.props.messages !== nextProps.messages || this.props.plottedSignal !== nextProps.plottedSignal ||
this.segmentIsNew(nextProps.segment) || this.state.spec !== nextState.spec)
{
return true;
}
if (this.state.data !== nextState.data) {

936
yarn.lock

File diff suppressed because it is too large Load Diff