Skip to content

Instantly share code, notes, and snippets.

@fud
Created December 11, 2019 03:22
Show Gist options
  • Save fud/ba3862bfd6739883c45a90dc559125b0 to your computer and use it in GitHub Desktop.
Save fud/ba3862bfd6739883c45a90dc559125b0 to your computer and use it in GitHub Desktop.
Canvas: text left of canvas as a label
<Row className="timeline-canvas-row">
<Col>
<canvas
id="timeline-canvas"
ref={this.chartRef}
>
</canvas>
<div className="results">
Results
</div>
</Col>
.results {
position: absolute;
top: 250px !important;
left: -40px !important;
transform: rotate(-90deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment