Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
y: { value: 0 },
height: { value: 100 },
width: { value: 2 },
fill: { value: 'firebrick' }
},
update: {
x: { signal: 'brush[1]' }
}
}
}
]
}
]
};
export default createClassFromSpec(canHistogramSpec);
componentDidMount() {
const view = this.refs.view;
const width = (view.clientWidth) | 0;
const height = (view.clientHeight) | 0;
const spec = makeViolinPlotSpec(width, height);
const plot = createClassFromSpec('plot', spec);
this.setState({ plot });
}