CLI previewInstall commands shown on this site are not released yet.

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-chart
bash
npx grassroot@latest add chart/glyph-plot-chart
bash
yarn dlx grassroot add chart/glyph-plot-chart
bash
bunx grassroot add chart/glyph-plot-chart

API Reference

GlyphPlotChartProps
PropTypeDefault
pointsrequiredreadonly GlyphPlotDatum[]