body { display: flex; justify-content: center; align-items: center; margin: 0; height: 100vh; width: 100vw; background-color: grey; } #tooltip{ background-color: tomato; display: none; height: fit-content; width: fit-content; opacity: 0.8; border-radius: 5px; padding: 20px; position: fixed; z-index: 10; } #chart { width: 900px; height: 500px; text-align: center; background-color: navajowhite; border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.25) 0 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; }