Docs/Graph
data@pdfcn-vue/graph

Graph

Chart wrapper (bar, line, area, pie, donut) over Forme chart primitives.

Installation

Terminal

npx shadcn-vue@latest add @pdfcn-vue/graph

Usage

Example

<Graph variant="bar" :series="series" :width="480" :height="220" />

Props

PropTypeDefaultDescription
variant'bar' | 'horizontal-bar' | 'line' | 'area' | 'pie' | 'donut''bar'Chart type.
seriesGraphSeries[]—Named data series.
widthnumber—Chart width in points.
heightnumber—Chart height in points.
legend'bottom' | 'right' | 'none''bottom'Legend placement.

Live preview

The gallery uses a shared document. Change its theme in the theme builder to compare tokens.

Graph in a document
Rendered with Forme in your browser.
Browser render

Rendering the PDF…

Vue SFC → Uint8Array

Source files

Registry paths
Files installed under components/pdf.
  • forme/components/Graph.vue
  • forme/components/graph.types.ts

Edit the theme tokens

Try the theme builder