DocsChartsSpecialty
GlyphPlotChart
React example follows below.
ts
import { GlyphPlotChart } from "@grassroot/charts-react"; <GlyphPlotChart points={[{ x: 1, y: 2 }, { x: 2, y: 5, glyph: "triangle" }]} />ts
<script setup lang="ts">import { GlyphPlotChart } from "@grassroot/charts-vue";</script> <template> <GlyphPlotChart :points='[{ x: 1, y: 2 }, { x: 2, y: 5, glyph: "triangle" }]' /></template>ts
import { ChangeDetectionStrategy, Component } from "@angular/core";import { GrassrootGlyphPlotChart } from "@grassroot/charts-angular"; @Component({ selector: "app-glyph-plot-chart-chart-demo", standalone: true, imports: [GrassrootGlyphPlotChart], changeDetection: ChangeDetectionStrategy.OnPush, template: `<grassroot-glyph-plot-chart [points]='[{ x: 1, y: 2 }, { x: 2, y: 5, glyph: "triangle" }]' />`,})export class GlyphPlotChartDemoComponent { } export default GlyphPlotChartDemoComponent;ts
<script lang="ts"> import { GlyphPlotChart } from "@grassroot/charts-svelte";</script> <GlyphPlotChart points={[{ x: 1, y: 2 }, { x: 2, y: 5, glyph: "triangle" }]} />ts
/** @jsxImportSource solid-js */import { GlyphPlotChart } from "@grassroot/charts-solid"; export default function GlyphPlotChartDemo() { return <GlyphPlotChart points={[{ x: 1, y: 2 }, { x: 2, y: 5, glyph: "triangle" }]} />;}Installation
bash
pnpm dlx grassroot add chart/glyph-plot-chartbash
npx grassroot@latest add chart/glyph-plot-chartbash
yarn dlx grassroot add chart/glyph-plot-chartbash
bunx grassroot add chart/glyph-plot-chartAPI Reference
| Prop | Type | Default |
|---|---|---|
pointsrequired | readonly GlyphPlotDatum[] | — |