Interface: DomainInfo
Experimental
Where a trace in the domain category (pie, later sunburst, indicator, …) is placed: its domain.x / domain.y (or the layout.grid cell its domain.row / domain.column picked, resolved during supply-defaults) mapped onto the plot area. Domain traces have no axes: they draw into the overlay viewport, whose world units are container CSS px with a bottom-left origin, so a container point (x, y) is at world (x, viewport.size.height - y). Use fitAspect / inscribedCircle (exported by the runtime) to keep circular traces round inside the rect.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
rect | readonly | Readonly<ViewportRect> | Experimental The domain in container CSS px (top-left origin), inside the margins. |
x | readonly | readonly [number, number] | Experimental domain.x in use: fractions of the plot area width, [start, end] with start < end. |
y | readonly | readonly [number, number] | Experimental domain.y in use: fractions of the plot area height from the bottom, start < end. |