<script>
import VulnerabilityChartLabel from './vulnerability_chart_label.vue';

export default {
  name: 'VulnerabilityChartTooltip',
  components: {
    VulnerabilityChartLabel,
  },
  props: {
    entries: {
      type: Array,
      required: true,
    },
  },
};
</script>

<template>
  <div>
    <vulnerability-chart-label
      v-for="entry in entries"
      :key="entry.seriesId + entry.dataIndex"
      :name="entry.seriesName"
      :value="entry.data[1]"
      :color="entry.color"
    />
  </div>
</template>
