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

DocsChartsSpecialty

CurveGalleryChart

React example follows below.
ts
import { CurveGalleryChart } from "@grassroot/charts-react";
const xy = [
{ x: "Jan", y: 14 },
{ x: "Feb", y: 21 },
{ x: "Mar", y: 18 },
{ x: "Apr", y: 27 },
];
<CurveGalleryChart data={xy} />
ts
<script setup lang="ts">
import { CurveGalleryChart } from "@grassroot/charts-vue";
const xy = [
{ x: "Jan", y: 14 },
{ x: "Feb", y: 21 },
{ x: "Mar", y: 18 },
{ x: "Apr", y: 27 },
];
</script>
<template>
<CurveGalleryChart :data='xy' />
</template>
ts
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { GrassrootCurveGalleryChart } from "@grassroot/charts-angular";
@Component({
selector: "app-curve-gallery-chart-chart-demo",
standalone: true,
imports: [GrassrootCurveGalleryChart],
changeDetection: ChangeDetectionStrategy.OnPush,
template: `<grassroot-curve-gallery-chart [data]='xy' />`,
})
export class CurveGalleryChartDemoComponent {
readonly xy = [
{ x: "Jan", y: 14 },
{ x: "Feb", y: 21 },
{ x: "Mar", y: 18 },
{ x: "Apr", y: 27 },
];
}
export default CurveGalleryChartDemoComponent;
ts
<script lang="ts">
import { CurveGalleryChart } from "@grassroot/charts-svelte";
const xy = [
{ x: "Jan", y: 14 },
{ x: "Feb", y: 21 },
{ x: "Mar", y: 18 },
{ x: "Apr", y: 27 },
];
</script>
<CurveGalleryChart data={xy} />
ts
/** @jsxImportSource solid-js */
import { CurveGalleryChart } from "@grassroot/charts-solid";
const xy = [
{ x: "Jan", y: 14 },
{ x: "Feb", y: 21 },
{ x: "Mar", y: 18 },
{ x: "Apr", y: 27 },
];
export default function CurveGalleryChartDemo() {
return <CurveGalleryChart data={xy} />;
}

Installation

API Reference

CurveGalleryChartProps
PropTypeDefault
datareadonly ChartXYDatum[] | undefined