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: 'fan',
} satisfies Pick<ChartData, 'type'>;Show a central estimate and supplied uncertainty bands.
@neural-charts/webfanContainer width
The chart fits its available space automatically. Choose a width to simulate a different container.
UTC dates retain every original estimate identity.
| Series | Date X (UTC) | id | x | value | intervals | Visible |
|---|---|---|---|---|---|---|
| 2026-01-01T00:00:00.000Z | estimate-0 | 1767225600000 | 20 | [{"bandId":"inner","low":18,"high":22},{"bandId":"outer","low":15,"high":25}] | Yes | |
| 2026-01-02T00:00:00.000Z | estimate-1 | 1767312000000 | 24.4 | [{"bandId":"inner","low":22.05,"high":26.75},{"bandId":"outer","low":18.6,"high":30.2}] | Yes | |
| 2026-01-03T00:00:00.000Z | estimate-2 | 1767398400000 | 27.5 | [{"bandId":"inner","low":24.8,"high":30.2},{"bandId":"outer","low":20.9,"high":34.1}] | Yes | |
| 2026-01-04T00:00:00.000Z | estimate-3 | 1767484800000 | 28.9 | [{"bandId":"inner","low":25.85,"high":31.95},{"bandId":"outer","low":21.5,"high":36.3}] | Yes | |
| 2026-01-05T00:00:00.000Z | estimate-4 | 1767571200000 | 28.5 | [{"bandId":"inner","low":25.1,"high":31.9},{"bandId":"outer","low":20.3,"high":36.7}] | Yes | |
| 2026-01-06T00:00:00.000Z | estimate-5 | 1767657600000 | 27.6 | [{"bandId":"inner","low":23.85,"high":31.35},{"bandId":"outer","low":18.6,"high":36.6}] | Yes | |
| 2026-01-07T00:00:00.000Z | estimate-6 | 1767744000000 | 27.3 | [{"bandId":"inner","low":23.2,"high":31.4},{"bandId":"outer","low":17.5,"high":37.1}] | Yes | |
| 2026-01-08T00:00:00.000Z | estimate-7 | 1767830400000 | 28.7 | [{"bandId":"inner","low":24.25,"high":33.15},{"bandId":"outer","low":18.1,"high":39.3}] | Yes | |
| 2026-01-09T00:00:00.000Z | estimate-8 | 1767916800000 | 31.9 | [{"bandId":"inner","low":27.1,"high":36.7},{"bandId":"outer","low":20.5,"high":43.3}] | Yes | |
| 2026-01-10T00:00:00.000Z | estimate-9 | 1768003200000 | 36.3 | [{"bandId":"inner","low":31.15,"high":41.45},{"bandId":"outer","low":24.1,"high":48.5}] | Yes | |
| 2026-01-11T00:00:00.000Z | estimate-10 | 1768089600000 | 40.6 | [{"bandId":"inner","low":35.1,"high":46.1},{"bandId":"outer","low":27.6,"high":53.6}] | Yes | |
| 2026-01-12T00:00:00.000Z | estimate-11 | 1768176000000 | 43.8 | [{"bandId":"inner","low":37.95,"high":49.65},{"bandId":"outer","low":30,"high":57.6}] | Yes |
Tap a data point or explore it with the pointer or keyboard.
Adjust the presentation and interaction of this example.
Dense series have a label limit. The table contains the original values.
Open a chart to explore its data, try its options and copy its code.
Use nested intervals when the source already defines the central estimate and coverage. The chart does not forecast, infer confidence or create probabilities.
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 fan.
Identifies the calculation family. Keep the literal value when constructing the data object.
import type { ChartData } from '@neural-charts/web';
export const dataHeader = {
type: 'fan',
} satisfies Pick<ChartData, 'type'>;Declares how each axis interprets values. Categories have IDs; dates use UTC milliseconds.
import type { ChartData } from '@neural-charts/web';
export const axes = {
"x": {
"type": "time"
},
"y": {
"type": "linear"
}
} satisfies (ChartData & { type: 'fan' })['axes'];import type { ChartData } from '@neural-charts/web';
export type Signature = (ChartData & { type: 'fan' })['axes'];Declares the family’s bands or ranges. Use stable IDs to match them to their presentation.
export type Signature = readonly ({
readonly id: string;
readonly label: string;
readonly coverage: number;
} & { readonly color?: never; readonly datum?: never })[];Contains the observations for this representation. Follow the family example’s point structure.
export type Signature =
| readonly ({
readonly id: string;
readonly x: string;
readonly value: number | null;
readonly intervals: readonly ({
readonly bandId: string;
readonly low: number | null;
readonly high: number | null;
} & { readonly color?: never; readonly datum?: never })[];
} & { readonly color?: never; readonly datum?: never })[]
| readonly ({
readonly id: string;
readonly x: number;
readonly value: number | null;
readonly intervals: readonly ({
readonly bandId: string;
readonly low: number | null;
readonly high: number | null;
} & { readonly color?: never; readonly datum?: never })[];
} & { readonly color?: never; readonly datum?: never })[];Customize presentation while keeping series and point identities stable.
Applies a palette in series order.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"colors": [
"#2559CC",
"#B52E70"
]
}
};Identify a series by ID and customize its color, stroke, pattern or marker. Use markerFill, markerStroke and markerStrokeWidth to set marker fill and border.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"series": [
{
"id": "visits",
"color": "#2559CC",
"marker": "diamond"
}
]
}
};Adjusts the width of data strokes in pixels.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"lineWidth": 3
}
};Displays values alongside marks in supported families.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"dataLabels": true
}
};Changes center text in families that support a center name.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions<'sunburst'> = {
"appearance": {
"centerName": "Portfolio"
}
};Limits how many value labels the renderer considers for placement.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"labelLimit": 12
}
};Chooses how to handle label density: automatic placement, all labels, or truncation.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"dataLabelLayout": "auto"
}
};Sets title alignment, hex color, size and weight. Also applies to SVG and PNG.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"titleStyle": {
"fontSize": 24,
"align": "left"
}
}
};Applies the same text controls to the description below the title.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"descriptionStyle": {
"color": "#405573"
}
}
};Sets the minimum plot width from 0 to 1600 px. In narrow containers the chart scrolls while the title and legend stay in place. The export includes the whole chart.
Default value 0 px
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"appearance": {
"minPlotWidth": 580
}
};Data types and domains determine the scale. Use options.axes to change its presentation.
Controls the grid. Visibility, ticks and labels can be configured for each axis.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"axes": {
"grid": true
}
};Configures X-axis presentation. Declare the data axis type in data.axes.x.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"axes": {
"x": {
"title": "Day"
}
}
};Configures presentation of the main value axis, including its number format.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"axes": {
"y": {
"title": "Revenue",
"numberFormat": {
"style": "currency",
"currency": "EUR"
}
}
}
};Controls the detail shown when exploring an observation.
Default value Enabled
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"tooltip": {
"enabled": true
}
};Shows one observation or compares series at the same position when supported.
Default value point
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"tooltip": {
"content": "shared"
}
};Keeps the tooltip within the plot. docked prefers below the point when it fits.
Default value auto
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"tooltip": {
"placement": "docked"
}
};Draws a guide on supported Cartesian charts.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"tooltip": {
"crosshair": true
}
};Lets users pin detail while continuing to explore other observations.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"tooltip": {
"pinnable": true
}
};Sets the tooltip background to a hex color.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"tooltip": {
"background": "#17243A"
}
};Sets the tooltip text to a hex color. Choose enough contrast against the background.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"tooltip": {
"foreground": "#FFFFFF"
}
};Identify the selection and hidden series by ID.
Applies a domain window and configures zoom controls on supported charts.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"viewport": {
"axes": "x",
"controls": true,
"pan": true,
"wheel": "ctrl"
}
};import type { PlanViewportValue } from '@neural-charts/core';
import type { ChartZoomOptions } from '@neural-charts/web';
export type Signature =
| Readonly<{
axes: 'x' | 'y' | 'xy';
value?: PlanViewportValue;
controls?: boolean;
zoom?: Readonly<ChartZoomOptions>;
pan?: boolean;
pinch?: boolean;
wheel?: false | 'ctrl' | 'always';
}>
| undefined;Applies selection by series and observation identity.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"selectedPoints": [
{
"seriesId": "visits",
"pointId": "day-0"
}
]
};export type Signature =
readonly Readonly<{ seriesId: string; pointId: string }>[] | undefined;Enables entry and transitions provided by the renderer. Respects reduced motion.
Default value Disabled
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"animation": {
"enabled": true
}
};Sets the duration in milliseconds. Zero applies the result immediately.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"animation": {
"duration": 250
}
};Change the revision to request another animation playback.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"animation": {
"revision": 2
}
};import type { ChartOptions } from '@neural-charts/web';
export const options = {
"title": "Uncertainty over time",
"description": "UTC dates retain every original estimate identity.",
"height": 380,
"appearance": {
"colors": [
"#2C6DCD",
"#638A35"
],
"markers": true,
"dataLabels": false,
"lineWidth": 2,
"markerRadius": 6
},
"legend": {
"visible": true,
"position": "bottom"
},
"tooltip": {
"enabled": true,
"content": "shared",
"placement": "auto",
"crosshair": true
},
"axes": {
"grid": true,
"x": {
"visible": true,
"title": "X"
},
"y": {
"visible": true,
"title": "Y"
}
}
} satisfies ChartOptions;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.