Skip to content

Commit

Permalink
Improve display of graph
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandbatey committed Apr 25, 2022
1 parent cbe7cb2 commit 1493096
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<style type="text/css">
#myChart {
width: 90%;
height: 90%
width: 98%;
height: 98%
}
/* scraped from the Chart.js examples website */
/* https://codepen.io/jeremybradbury/pen/xxdddoB */
Expand All @@ -30,7 +30,9 @@
</head>
<body>
<section class="buttons"></section>
<canvas id="myChart"></canvas>
<div class="chart-container" style="position: relative; height:95vh; width:95vw">
<canvas id="myChart" style="height:95vh; width:95vw"></canvas>
</div>
<script>
const CONTEXT = REPLACE_ME_WITH_JS_CONTEXT;
</script>
Expand Down
3 changes: 2 additions & 1 deletion jsbuild/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ const config = {
data: data,
options: {
parsing: true,
responsive: false,
responsive: true,
maintainAspectRatio: false,
animation: {
// Massively speed up all the default animations
duration: 200,
Expand Down

0 comments on commit 1493096

Please sign in to comment.