Skip to content

ChartEmpty

Open .md
Live preview

Loading example…

Shown when there is nothing to plot: keeps the chart’s footprint, says why.

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

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

export const Default: Story = {
render: () => <AxesDemo title="Ventas" rightTitle="Cortes" showRight={false} showGrid />,
};

Source of the Storybook story.

Prop Type Default Description
height * number
label * string
className string

* marks a required prop.

packages/ui/src/charts/core/chart-states.tsx