Skip to content

Intermact API Reference / @intermact/core / BarChartSpec

Interface: BarChartSpec

Defined in: packages/core/src/pcg/data.ts:46

Spec for barChart.

Properties

data

readonly data: readonly (number | BarDatum)[]

Defined in: packages/core/src/pcg/data.ts:47


domain?

readonly optional domain?: readonly [number, number]

Defined in: packages/core/src/pcg/data.ts:51

Value range mapped to [0, height]; defaults to [0, maxValue].


gap?

readonly optional gap?: number

Defined in: packages/core/src/pcg/data.ts:53

Gap fraction between bars in [0,1) (default 0.2).


origin?

readonly optional origin?: AbsXY

Defined in: packages/core/src/pcg/data.ts:55

Bottom-left origin in world space (default [0,0]).


size?

readonly optional size?: Vec2

Defined in: packages/core/src/pcg/data.ts:49

Chart size [width, height] in world units (default [4, 3]).


style?

readonly optional style?: ObjectStyle

Defined in: packages/core/src/pcg/data.ts:56

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)