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: 'timeline',
} satisfies Pick<ChartData, 'type'>;Inspect dated events with their full source text.
@neural-charts/webtimelineContainer width
The chart fits its available space automatically. Choose a width to simulate a different container.
Label density is limited without discarding source events.
| Series | Date X (UTC) | id | x | title | description | Visible |
|---|---|---|---|---|---|---|
| Releases | 2026-09-01T00:00:00.000Z | event-0 | 1788220800000 | Recorded event 1 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-01T06:00:00.000Z | event-1 | 1788242400000 | Recorded event 2 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-01T12:00:00.000Z | event-2 | 1788264000000 | Recorded event 3 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-01T18:00:00.000Z | event-3 | 1788285600000 | Recorded event 4 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-02T00:00:00.000Z | event-4 | 1788307200000 | Recorded event 5 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-02T06:00:00.000Z | event-5 | 1788328800000 | Recorded event 6 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-02T12:00:00.000Z | event-6 | 1788350400000 | Recorded event 7 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-02T18:00:00.000Z | event-7 | 1788372000000 | Recorded event 8 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-03T00:00:00.000Z | event-8 | 1788393600000 | Recorded event 9 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-03T06:00:00.000Z | event-9 | 1788415200000 | Recorded event 10 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-03T12:00:00.000Z | event-10 | 1788436800000 | Recorded event 11 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-03T18:00:00.000Z | event-11 | 1788458400000 | Recorded event 12 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-04T00:00:00.000Z | event-12 | 1788480000000 | Recorded event 13 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-04T06:00:00.000Z | event-13 | 1788501600000 | Recorded event 14 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-04T12:00:00.000Z | event-14 | 1788523200000 | Recorded event 15 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-04T18:00:00.000Z | event-15 | 1788544800000 | Recorded event 16 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-05T00:00:00.000Z | event-16 | 1788566400000 | Recorded event 17 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-05T06:00:00.000Z | event-17 | 1788588000000 | Recorded event 18 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-05T12:00:00.000Z | event-18 | 1788609600000 | Recorded event 19 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-05T18:00:00.000Z | event-19 | 1788631200000 | Recorded event 20 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-06T00:00:00.000Z | event-20 | 1788652800000 | Recorded event 21 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-06T06:00:00.000Z | event-21 | 1788674400000 | Recorded event 22 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-06T12:00:00.000Z | event-22 | 1788696000000 | Recorded event 23 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-06T18:00:00.000Z | event-23 | 1788717600000 | Recorded event 24 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-07T00:00:00.000Z | event-24 | 1788739200000 | Recorded event 25 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-07T06:00:00.000Z | event-25 | 1788760800000 | Recorded event 26 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-07T12:00:00.000Z | event-26 | 1788782400000 | Recorded event 27 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-07T18:00:00.000Z | event-27 | 1788804000000 | Recorded event 28 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-08T00:00:00.000Z | event-28 | 1788825600000 | Recorded event 29 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-08T06:00:00.000Z | event-29 | 1788847200000 | Recorded event 30 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-08T12:00:00.000Z | event-30 | 1788868800000 | Recorded event 31 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-08T18:00:00.000Z | event-31 | 1788890400000 | Recorded event 32 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-09T00:00:00.000Z | event-32 | 1788912000000 | Recorded event 33 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-09T06:00:00.000Z | event-33 | 1788933600000 | Recorded event 34 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-09T12:00:00.000Z | event-34 | 1788955200000 | Recorded event 35 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-09T18:00:00.000Z | event-35 | 1788976800000 | Recorded event 36 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-10T00:00:00.000Z | event-36 | 1788998400000 | Recorded event 37 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-10T06:00:00.000Z | event-37 | 1789020000000 | Recorded event 38 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-10T12:00:00.000Z | event-38 | 1789041600000 | Recorded event 39 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-10T18:00:00.000Z | event-39 | 1789063200000 | Recorded event 40 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-11T00:00:00.000Z | event-40 | 1789084800000 | Recorded event 41 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-11T06:00:00.000Z | event-41 | 1789106400000 | Recorded event 42 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-11T12:00:00.000Z | event-42 | 1789128000000 | Recorded event 43 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-11T18:00:00.000Z | event-43 | 1789149600000 | Recorded event 44 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-12T00:00:00.000Z | event-44 | 1789171200000 | Recorded event 45 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-12T06:00:00.000Z | event-45 | 1789192800000 | Recorded event 46 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-12T12:00:00.000Z | event-46 | 1789214400000 | Recorded event 47 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-12T18:00:00.000Z | event-47 | 1789236000000 | Recorded event 48 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-13T00:00:00.000Z | event-48 | 1789257600000 | Recorded event 49 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-13T06:00:00.000Z | event-49 | 1789279200000 | Recorded event 50 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-13T12:00:00.000Z | event-50 | 1789300800000 | Recorded event 51 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-13T18:00:00.000Z | event-51 | 1789322400000 | Recorded event 52 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-14T00:00:00.000Z | event-52 | 1789344000000 | Recorded event 53 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-14T06:00:00.000Z | event-53 | 1789365600000 | Recorded event 54 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-14T12:00:00.000Z | event-54 | 1789387200000 | Recorded event 55 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-14T18:00:00.000Z | event-55 | 1789408800000 | Recorded event 56 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-15T00:00:00.000Z | event-56 | 1789430400000 | Recorded event 57 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-15T06:00:00.000Z | event-57 | 1789452000000 | Recorded event 58 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-15T12:00:00.000Z | event-58 | 1789473600000 | Recorded event 59 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-15T18:00:00.000Z | event-59 | 1789495200000 | Recorded event 60 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-16T00:00:00.000Z | event-60 | 1789516800000 | Recorded event 61 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-16T06:00:00.000Z | event-61 | 1789538400000 | Recorded event 62 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-16T12:00:00.000Z | event-62 | 1789560000000 | Recorded event 63 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-16T18:00:00.000Z | event-63 | 1789581600000 | Recorded event 64 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-17T00:00:00.000Z | event-64 | 1789603200000 | Recorded event 65 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-17T06:00:00.000Z | event-65 | 1789624800000 | Recorded event 66 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-17T12:00:00.000Z | event-66 | 1789646400000 | Recorded event 67 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-17T18:00:00.000Z | event-67 | 1789668000000 | Recorded event 68 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-18T00:00:00.000Z | event-68 | 1789689600000 | Recorded event 69 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-18T06:00:00.000Z | event-69 | 1789711200000 | Recorded event 70 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-18T12:00:00.000Z | event-70 | 1789732800000 | Recorded event 71 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-18T18:00:00.000Z | event-71 | 1789754400000 | Recorded event 72 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-19T00:00:00.000Z | event-72 | 1789776000000 | Recorded event 73 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-19T06:00:00.000Z | event-73 | 1789797600000 | Recorded event 74 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-19T12:00:00.000Z | event-74 | 1789819200000 | Recorded event 75 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-19T18:00:00.000Z | event-75 | 1789840800000 | Recorded event 76 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-20T00:00:00.000Z | event-76 | 1789862400000 | Recorded event 77 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-20T06:00:00.000Z | event-77 | 1789884000000 | Recorded event 78 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-20T12:00:00.000Z | event-78 | 1789905600000 | Recorded event 79 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-20T18:00:00.000Z | event-79 | 1789927200000 | Recorded event 80 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-21T00:00:00.000Z | event-80 | 1789948800000 | Recorded event 81 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-21T06:00:00.000Z | event-81 | 1789970400000 | Recorded event 82 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-21T12:00:00.000Z | event-82 | 1789992000000 | Recorded event 83 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-21T18:00:00.000Z | event-83 | 1790013600000 | Recorded event 84 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-22T00:00:00.000Z | event-84 | 1790035200000 | Recorded event 85 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-22T06:00:00.000Z | event-85 | 1790056800000 | Recorded event 86 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-22T12:00:00.000Z | event-86 | 1790078400000 | Recorded event 87 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-22T18:00:00.000Z | event-87 | 1790100000000 | Recorded event 88 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-23T00:00:00.000Z | event-88 | 1790121600000 | Recorded event 89 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-23T06:00:00.000Z | event-89 | 1790143200000 | Recorded event 90 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-23T12:00:00.000Z | event-90 | 1790164800000 | Recorded event 91 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-23T18:00:00.000Z | event-91 | 1790186400000 | Recorded event 92 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-24T00:00:00.000Z | event-92 | 1790208000000 | Recorded event 93 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-24T06:00:00.000Z | event-93 | 1790229600000 | Recorded event 94 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-24T12:00:00.000Z | event-94 | 1790251200000 | Recorded event 95 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-24T18:00:00.000Z | event-95 | 1790272800000 | Recorded event 96 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-25T00:00:00.000Z | event-96 | 1790294400000 | Recorded event 97 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-25T06:00:00.000Z | event-97 | 1790316000000 | Recorded event 98 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-25T12:00:00.000Z | event-98 | 1790337600000 | Recorded event 99 | The tooltip keeps the full source even when its label is omitted. | Yes |
| Releases | 2026-09-25T18:00:00.000Z | event-99 | 1790359200000 | Recorded event 100 | The tooltip keeps the full source even when its label is omitted. | Yes |
The first 100 rows are shown here. The interactive table contains the complete dataset.
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 Timeline for events located on a numeric or UTC time axis. It represents when something happened, rather than treating an event as a measured duration or inventing evenly spaced dates.
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 timeline.
Identifies the calculation family. Keep the literal value when constructing the data object.
import type { ChartData } from '@neural-charts/web';
export const dataHeader = {
type: 'timeline',
} 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",
"domain": [
1788220800000,
1790812800000
]
}
} satisfies (ChartData & { type: 'timeline' })['axes'];export type Signature = {
readonly x:
| (Omit<
Readonly<{
type: 'linear';
domain?: readonly [number, number];
reversed?: boolean;
nice?: boolean;
includeZero?: boolean;
unit?: string;
}>,
'title' | 'labels' | 'grid'
> & {
readonly title?: never;
readonly grid?: never;
readonly labels?: never;
})
| (Omit<
Readonly<{
type: 'time';
domain?: readonly [number, number];
reversed?: boolean;
nice?: boolean;
includeZero?: never;
unit?: never;
}>,
'title' | 'labels' | 'grid'
> & {
readonly title?: never;
readonly grid?: never;
readonly labels?: never;
});
};Contains series and observations. Keep IDs when replacing data so selection and legend retain their identity.
import type { PlanTimelineSeries } from '@neural-charts/core';
export type Signature = readonly (Omit<
PlanTimelineSeries,
'data' | 'markers' | 'dash' | 'color'
> & {
readonly data: readonly ({
readonly id: string;
readonly x: number | null;
readonly title: string;
readonly description?: string | undefined;
} & { readonly color?: never; readonly datum?: never })[];
readonly color?: never;
readonly markers?: never;
readonly dash?: 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
}
};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
}
};Adjusts the radius of the geometric mark in families such as Timeline, Lollipop, or Dumbbell.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions<'timeline'> = {
"layout": {
"labelPosition": "alternate",
"labelMaxWidth": 120,
"markerRadius": 4
}
};Places timeline labels above, below, or alternating around the axis.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions<'timeline'> = {
"layout": {
"labelPosition": "alternate",
"labelMaxWidth": 120,
"markerRadius": 4
}
};Limits the width reserved for a timeline label, useful with long text.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions<'timeline'> = {
"layout": {
"labelPosition": "alternate",
"labelMaxWidth": 120,
"markerRadius": 4
}
};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 whether the legend is shown when the chart has entries.
Default value Visible
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"legend": {
"visible": true
}
};Places the legend. Side positions need at least 600 px of width; narrower charts place it at the bottom.
Default value bottom
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"legend": {
"position": "bottom"
}
};Allows users to show or hide series from the legend.
Default value Enabled
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"legend": {
"interactive": true
}
};Reverses legend entry order while preserving series order in the chart.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"legend": {
"reverse": true
}
};Limits the visible text length of each legend entry.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"legend": {
"maxLabelCharacters": 24
}
};Adjusts spacing between legend entries.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"legend": {
"itemSpacing": 12
}
};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;Controls visibility by series ID. An empty array leaves every series visible.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"hiddenSeriesIds": [
"previous"
]
};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": "Dense events",
"description": "Label density is limited without discarding source events.",
"height": 380,
"layout": {
"labelPosition": "alternate",
"labelMaxWidth": 120,
"markerRadius": 4
},
"appearance": {
"colors": [
"#2C6DCD",
"#638A35"
],
"markers": false,
"dataLabels": true,
"lineWidth": 2,
"markerRadius": 6
},
"legend": {
"visible": true,
"position": "bottom"
},
"tooltip": {
"enabled": true,
"content": "point",
"placement": "auto",
"crosshair": true
},
"axes": {
"grid": true,
"x": {
"visible": true,
"title": "Date (UTC)"
},
"y": {
"visible": true,
"title": ""
}
},
"viewport": {
"axes": "x"
}
} 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.