Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

ChartInkToolbar

Open .md
Live preview

Loading example…

Buttons for the ruler and pen tools plus undo, redo and clear. Place it next to the chart.

import { ChartInkToolbar } from "@jcsoftdev/ui/charts";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/charts/core.

export const Default: Story = {
args: { ink: placeholder },
render: () => <InkDemo kind="line" tool="ruler" />,
};

Source of the Storybook story.

Prop Type Default Description
ink * ChartInk
className string

* marks a required prop.

packages/ui/src/charts/core/cartesian/ink-layer.tsx