stats.length">
    </axis-label>
  </g>
</script>

<script>
  const Polygraph = {
    props: ['stats'],
    template: '#polygraph-template',
    computed: {
      // a computed property for the polygon's points
      points() {
        const total = this.stats.length
        return this.stats
          .map((stat, i) => {
            const point = valueToPoint(stat.value, i, total)
            return point.x + ',' + point.y
          })
          .join(' ')
      },
    },
    components: {
      AxisLabel,