add classnames to canvases

This commit is contained in:
Colin Megill
2021-07-23 13:29:27 -07:00
parent 9c2323b7bc
commit 02e79d502f
3 changed files with 3 additions and 0 deletions
@@ -78,6 +78,7 @@ export default class MiniHistogram extends React.PureComponent {
height, height,
borderBottom: "solid rgb(230, 230, 230) 0.25px", borderBottom: "solid rgb(230, 230, 230) 0.25px",
}} }}
className="mini-histo"
width={width} width={width}
height={height} height={height}
ref={this.canvasRef} ref={this.canvasRef}
@@ -63,6 +63,7 @@ export default class MiniStackedBar extends React.PureComponent {
width, width,
height, height,
}} }}
className="mini-stacked-bar-canvas"
width={width} width={width}
height={height} height={height}
ref={this.canvasRef} ref={this.canvasRef}
@@ -502,6 +502,7 @@ class Scatterplot extends React.PureComponent {
width={width} width={width}
height={height} height={height}
data-testid="scatterplot" data-testid="scatterplot"
className="scatterplot-canvas"
style={{ style={{
marginLeft: margin.left, marginLeft: margin.left,
marginTop: margin.top, marginTop: margin.top,