UNPKG

@graphique/graphique

Version:

A data visualization system for React based on the Grammar of Graphics.

17 lines (14 loc) 421 B
import { atom } from 'jotai' export interface LabelsProps { /** An element or string placed above the visualization area — a great place for a title or anything else you'd like */ header?: React.ReactNode /** Used to label the x axis */ x?: string /** An element or string used to label the y axis */ y?: React.ReactNode } export const labelsState = atom<LabelsProps>({ header: '', x: '', y: '', })