Skip to content

Commit

Permalink
Fix sizing in window
Browse files Browse the repository at this point in the history
  • Loading branch information
pmwthunkable committed Jan 19, 2024
1 parent 4949c61 commit b54643e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/c3.min.js"></script>
</head>
<body>
<body style="margin: 0px;">
<div id="chart"></div>

<script>
document.getElementById('chart').style.height = window.innerHeight;
var chart = c3.generate({
bindto: '#chart',
height: window.innerHeight,
data: {
columns: [
['data1'],
Expand Down

0 comments on commit b54643e

Please sign in to comment.