# BarChart

Source: /tuil/docs/reference/components/structured-viewers/bar-chart
Locale: en

BarChart component API, behavior, and executable example.





{/* Generated by tooling/docs/generate-reference.ts. */}

<PublishedStory storyId="component-acceptance" variant="LogViewer" />

## API and events [#api-and-events]

Inspect streaming logs, expandable structured values, and line-oriented changes in terminal-bounded viewports.

```tsx
export function BarChart(props: {
  readonly data: readonly ChartDatum[];
  readonly width?: number;
}): ReactNode;
```

### Props, functions, and events [#props-functions-and-events]

This declaration has no public members.

`LogViewer` reports follow state; JSON expansion can be controlled; pure transformation helpers emit nothing.

Callback props run after the documented input is accepted. Callbacks are not cancellable unless their return type or description states otherwise.

## Interaction and capabilities [#interaction-and-capabilities]

Viewers scroll and filter; JSON nodes expand or collapse; diff output remains deterministic in static mode.

The published manifest records keyboard, focus, pointer, theme, terminal, semantic, event, and dependency requirements.

## Complete import [#complete-import]

```tsx
import { BarChart } from "@/components/tuil/data-display/log-viewer";
```
