html, body { height: 100%; margin: 0; padding: 0; background: #ffffff; color: #ffffff; font-family: Arial, sans-serif; overflow: hidden; /* prevents page scroll messing with chart height */ } /* Header area */ h2 { margin: 10px 15px 5px 15px; } a { color: #4da3ff; margin: 0 15px 10px 15px; text-decoration: none; display: inline-block; } a:hover { text-decoration: underline; } /* FULL SCREEN CHART CONTAINER */ .chart-container { width: 100%; height: calc(100vh - 80px); /* subtract header space */ display: flex; padding: 10px 15px; box-sizing: border-box; } /* CRITICAL: canvas must stretch */ #chart { width: 100% !important; height: 100% !important; display: block; }