Skip to content

Instantly share code, notes, and snippets.

@andregardi
Last active September 29, 2018 14:42
Show Gist options
  • Save andregardi/3a8c1f573e04df434580f09a3cedd6fe to your computer and use it in GitHub Desktop.
Save andregardi/3a8c1f573e04df434580f09a3cedd6fe to your computer and use it in GitHub Desktop.
<style>
.container {
width: 50%;
height: 50%;
position: relative;
}
#loadingMessage{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
</style>
<body>
<button id="renderBtn">
Render
</button>
<div class="container">
<div id="loadingMessage"></div>
<canvas id="myChart"></canvas>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment