Identifies the calculation family. Keep the literal value when constructing the data object.
Usage example
import type { ChartData } from '@neural-charts/web';
export const dataHeader = {
type: 'pie',
} satisfies Pick<ChartData, 'type'>;Show a small number of parts within a whole.
Container width
The chart fits its available space automatically. Choose a width to simulate a different container.
Tap a data point or explore it with the pointer or keyboard.
Adjust the presentation and interaction of this example.
Open a chart to explore its data, try its options and copy its code.
Use a pie when the total and its proportions matter. Keep the number of slices small; use bars when readers need precise comparisons.
Expand a property to learn when to use it, see its public type, and find examples where applicable.
The property data.type for this family is pie.
Customize presentation while keeping series and point identities stable.
Identify the selection and hidden series by ID.
Select an observation with the pointer or enter the chart with Tab. Arrow keys navigate the data; Home and End move to the endpoints. Enter or Space selects, and Escape closes the detail.
The data table retains original values, including missing values and hidden series. A repeated label does not merge separate categories. Manual screen reader review remains pending.
Accessibility guideCopy the current input object with its original identifiers and values.