Gráficos e métricas

VFunnelChart

Componente3 exemplos6 propsA2UI · FunnelChart

Funil de pipeline em colunas: valor por etapa, cápsula proporcional à maior etapa e taxa de conversão entre etapas.

Importação
<script setup lang="ts">
import { VFunnelChart } from 'vueui-nova-kit'
</script>

Uso

Exemplo
<VFunnelChart :stages="stages" />

Playground

Os controles abaixo são gerados a partir das props declaradas em VFunnelChart.types.ts; o código acompanha cada mudança.

Exemplos

Variantes, tamanhos e estados, extraídos das stories da biblioteca.

Default

Variação Padrão.

Ver código
vue
<script setup lang="ts">
import { VFunnelChart } from 'vueui-nova-kit'

const stages = [
  {
    label: 'Detected',
    value: 182.4,
    display: '$182.4K',
    caption: '118 claims',
  },
  {
    label: 'Prepared',
    value: 96.3,
    display: '$96.3K',
    caption: '64 claims',
  },
  {
    label: 'Submitted',
    value: 71.6,
    display: '$71.6K',
    caption: '50 claims',
  },
  {
    label: 'Approved',
    value: 58.1,
    display: '$58.1K',
    caption: '41 claims',
  },
  {
    label: 'Paid',
    value: 51.3,
    display: '$51.3K',
    caption: '36 claims',
  },
]
</script>

<template>
  <VFunnelChart :stages="stages" aria-label="Recovery pipeline" />
</template>

On Gradient

Variação Inverse sobre gradiente (página Recovery).

Ver código
vue
<script setup lang="ts">
import { VFunnelChart } from 'vueui-nova-kit'

const args = {
  stages: [
    {
      label: 'Detected',
      value: 182.4,
      display: '$182.4K',
      caption: '118 claims'
    },
    {
      label: 'Prepared',
      value: 96.3,
      display: '$96.3K',
      caption: '64 claims'
    },
    {
      label: 'Submitted',
      value: 71.6,
      display: '$71.6K',
      caption: '50 claims'
    },
    {
      label: 'Approved',
      value: 58.1,
      display: '$58.1K',
      caption: '41 claims'
    },
    {
      label: 'Paid',
      value: 51.3,
      display: '$51.3K',
      caption: '36 claims'
    }
  ],
  height: 120,
  showConversion: true,
  tone: 'inverse',
  ariaLabel: 'Recovery pipeline'
}
</script>

<template>
  <div style="padding:24px 24px 28px;border-radius:20px;background:linear-gradient(120deg,#e0e7ff,#bfdbfe 50%,#93c5fd);">
        <VFunnelChart v-bind="args" />
      </div>
</template>

Three Stages

Variação Três etapas sem conversão.

Ver código
vue
<script setup lang="ts">
import { VFunnelChart } from 'vueui-nova-kit'

const stages = [
  {
    label: 'Detected',
    value: 182.4,
    display: '$182.4K',
    caption: '118 claims',
  },
  {
    label: 'Prepared',
    value: 96.3,
    display: '$96.3K',
    caption: '64 claims',
  },
  {
    label: 'Submitted',
    value: 71.6,
    display: '$71.6K',
    caption: '50 claims',
  },
]
</script>

<template>
  <VFunnelChart
    :stages="stages"
    :height="80"
    :show-conversion="false"
    aria-label="Recovery pipeline" />
</template>

Props

PropTipoDefaultDescrição
stagesVFunnelStage[]——
heightnumber120Capsule height in px.
showConversionbooleantrueShows the stage-to-stage conversion chip between columns.
toneVFunnelChartTone"primary"—
ariaLabelstring——
dataTestIdstring——

Events

Não emite eventos.

Slots

Sem slots.

Fonte: src/components/data/VFunnelChart/VFunnelChart.vue · tipos: src/components/data/VFunnelChart/VFunnelChart.types.ts