<!DOCTYPE html>
<html lang="en">
 <head>
  <style>
   *,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Bitter", sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-size: 1.125rem;
  color: #101820;
  background-color: #f8f8f8;
}

section {
  width: max-content;
  padding: 1.5rem 1.5rem 2rem;
  border: 2px solid #a7a8aa;
  border-radius: 0.5rem;
  margin: auto;
}

h2 {
  margin: 0 0 2.5rem;
}

.chart {
  display: grid;
  gap: 0 0.5em;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
  grid-auto-rows: 1fr;
  grid-auto-columns: 1fr;
  min-height: 12rem;
}

li {
  background: #ffd100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column-reverse;
  padding: 0.5rem 0.25rem;
  height: 100%;
}

li span {
  font-weight: bold;
}
  </style>
 </head>
 <body translate="no">
  <section>
   <h2>
    Players per sports team
   </h2>
   <ul class="chart" id="chart">
    <li :key="dataPoint.name" :style="`
				grid-row: ${getMaxDataPoint - dataPoint.value + 1} / span ${dataPoint.value};
				grid-column: ${i + 1}
			`" v-for="(dataPoint, i) in dataPoints">
     {{ dataPoint.name }}
     <span>
      {{ dataPoint.value }}
     </span>
    </li>
   </ul>
  </section>
 </body>
</html>
