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: 'flame',
} satisfies Pick<ChartData, 'type'>;Inspect original nested execution intervals.
@neural-charts/webflameContainer width
The chart fits its available space automatically. Choose a width to simulate a different container.
Labels are bounded without removing original intervals.
| Series | id | label | start | end | parentId | Visible |
|---|---|---|---|---|---|---|
| main | Application interaction | 0 | 640 | Missing measurement | Yes | |
| task-0 | Task 1 | 0 | 4 | main | Yes | |
| task-1 | Task 2 | 5 | 9 | main | Yes | |
| task-2 | Task 3 | 10 | 14 | main | Yes | |
| task-3 | Task 4 | 15 | 19 | main | Yes | |
| task-4 | Task 5 | 20 | 24 | main | Yes | |
| task-5 | Task 6 | 25 | 29 | main | Yes | |
| task-6 | Task 7 | 30 | 34 | main | Yes | |
| task-7 | Task 8 | 35 | 39 | main | Yes | |
| task-8 | Task 9 | 40 | 44 | main | Yes | |
| task-9 | Task 10 | 45 | 49 | main | Yes | |
| task-10 | Task 11 | 50 | 54 | main | Yes | |
| task-11 | Task 12 | 55 | 59 | main | Yes | |
| task-12 | Task 13 | 60 | 64 | main | Yes | |
| task-13 | Task 14 | 65 | 69 | main | Yes | |
| task-14 | Task 15 | 70 | 74 | main | Yes | |
| task-15 | Task 16 | 75 | 79 | main | Yes | |
| task-16 | Task 17 | 80 | 84 | main | Yes | |
| task-17 | Task 18 | 85 | 89 | main | Yes | |
| task-18 | Task 19 | 90 | 94 | main | Yes | |
| task-19 | Task 20 | 95 | 99 | main | Yes | |
| task-20 | Task 21 | 100 | 104 | main | Yes | |
| task-21 | Task 22 | 105 | 109 | main | Yes | |
| task-22 | Task 23 | 110 | 114 | main | Yes | |
| task-23 | Task 24 | 115 | 119 | main | Yes | |
| task-24 | Task 25 | 120 | 124 | main | Yes | |
| task-25 | Task 26 | 125 | 129 | main | Yes | |
| task-26 | Task 27 | 130 | 134 | main | Yes | |
| task-27 | Task 28 | 135 | 139 | main | Yes | |
| task-28 | Task 29 | 140 | 144 | main | Yes | |
| task-29 | Task 30 | 145 | 149 | main | Yes | |
| task-30 | Task 31 | 150 | 154 | main | Yes | |
| task-31 | Task 32 | 155 | 159 | main | Yes | |
| task-32 | Task 33 | 160 | 164 | main | Yes | |
| task-33 | Task 34 | 165 | 169 | main | Yes | |
| task-34 | Task 35 | 170 | 174 | main | Yes | |
| task-35 | Task 36 | 175 | 179 | main | Yes | |
| task-36 | Task 37 | 180 | 184 | main | Yes | |
| task-37 | Task 38 | 185 | 189 | main | Yes | |
| task-38 | Task 39 | 190 | 194 | main | Yes | |
| task-39 | Task 40 | 195 | 199 | main | Yes | |
| task-40 | Task 41 | 200 | 204 | main | Yes | |
| task-41 | Task 42 | 205 | 209 | main | Yes | |
| task-42 | Task 43 | 210 | 214 | main | Yes | |
| task-43 | Task 44 | 215 | 219 | main | Yes | |
| task-44 | Task 45 | 220 | 224 | main | Yes | |
| task-45 | Task 46 | 225 | 229 | main | Yes | |
| task-46 | Task 47 | 230 | 234 | main | Yes | |
| task-47 | Task 48 | 235 | 239 | main | Yes | |
| task-48 | Task 49 | 240 | 244 | main | Yes | |
| task-49 | Task 50 | 245 | 249 | main | Yes | |
| task-50 | Task 51 | 250 | 254 | main | Yes | |
| task-51 | Task 52 | 255 | 259 | main | Yes | |
| task-52 | Task 53 | 260 | 264 | main | Yes | |
| task-53 | Task 54 | 265 | 269 | main | Yes | |
| task-54 | Task 55 | 270 | 274 | main | Yes | |
| task-55 | Task 56 | 275 | 279 | main | Yes | |
| task-56 | Task 57 | 280 | 284 | main | Yes | |
| task-57 | Task 58 | 285 | 289 | main | Yes | |
| task-58 | Task 59 | 290 | 294 | main | Yes | |
| task-59 | Task 60 | 295 | 299 | main | Yes | |
| task-60 | Task 61 | 300 | 304 | main | Yes | |
| task-61 | Task 62 | 305 | 309 | main | Yes | |
| task-62 | Task 63 | 310 | 314 | main | Yes | |
| task-63 | Task 64 | 315 | 319 | main | Yes | |
| task-64 | Task 65 | 320 | 324 | main | Yes | |
| task-65 | Task 66 | 325 | 329 | main | Yes | |
| task-66 | Task 67 | 330 | 334 | main | Yes | |
| task-67 | Task 68 | 335 | 339 | main | Yes | |
| task-68 | Task 69 | 340 | 344 | main | Yes | |
| task-69 | Task 70 | 345 | 349 | main | Yes | |
| task-70 | Task 71 | 350 | 354 | main | Yes | |
| task-71 | Task 72 | 355 | 359 | main | Yes | |
| task-72 | Task 73 | 360 | 364 | main | Yes | |
| task-73 | Task 74 | 365 | 369 | main | Yes | |
| task-74 | Task 75 | 370 | 374 | main | Yes | |
| task-75 | Task 76 | 375 | 379 | main | Yes | |
| task-76 | Task 77 | 380 | 384 | main | Yes | |
| task-77 | Task 78 | 385 | 389 | main | Yes | |
| task-78 | Task 79 | 390 | 394 | main | Yes | |
| task-79 | Task 80 | 395 | 399 | main | Yes | |
| task-80 | Task 81 | 400 | 404 | main | Yes | |
| task-81 | Task 82 | 405 | 409 | main | Yes | |
| task-82 | Task 83 | 410 | 414 | main | Yes | |
| task-83 | Task 84 | 415 | 419 | main | Yes | |
| task-84 | Task 85 | 420 | 424 | main | Yes | |
| task-85 | Task 86 | 425 | 429 | main | Yes | |
| task-86 | Task 87 | 430 | 434 | main | Yes | |
| task-87 | Task 88 | 435 | 439 | main | Yes | |
| task-88 | Task 89 | 440 | 444 | main | Yes | |
| task-89 | Task 90 | 445 | 449 | main | Yes | |
| task-90 | Task 91 | 450 | 454 | main | Yes | |
| task-91 | Task 92 | 455 | 459 | main | Yes | |
| task-92 | Task 93 | 460 | 464 | main | Yes | |
| task-93 | Task 94 | 465 | 469 | main | Yes | |
| task-94 | Task 95 | 470 | 474 | main | Yes | |
| task-95 | Task 96 | 475 | 479 | main | Yes | |
| task-96 | Task 97 | 480 | 484 | main | Yes | |
| task-97 | Task 98 | 485 | 489 | main | Yes | |
| task-98 | Task 99 | 490 | 494 | main | 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 a single-thread synchronous trace to inspect inclusive and self duration. The horizontal axis is original time; nesting controls depth. This is not an aggregated flamegraph or a concurrent scheduler.
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 flame.
Identifies the calculation family. Keep the literal value when constructing the data object.
import type { ChartData } from '@neural-charts/web';
export const dataHeader = {
type: 'flame',
} 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": "linear",
"unit": "ms"
}
} satisfies (ChartData & { type: 'flame' })['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 the observations for this representation. Follow the family example’s point structure.
export type Signature = readonly ({
readonly id: string;
readonly label: string;
readonly start: number;
readonly end: number;
readonly parentId?: string | undefined;
} & { 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
}
};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
}
};Leaves space between rows so interval bars stay separated.
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions<'flame'> = {
"layout": {
"rowPadding": 0.16
}
};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": "A longer trace",
"description": "Labels are bounded without removing original intervals.",
"height": 380,
"layout": {
"rowPadding": 0.16
},
"appearance": {
"colors": [
"#2C6DCD",
"#638A35"
],
"markers": false,
"dataLabels": true,
"lineWidth": 2,
"markerRadius": 6
},
"legend": {
"visible": false,
"position": "bottom"
},
"tooltip": {
"enabled": true,
"content": "point",
"placement": "auto",
"crosshair": false
},
"axes": {
"grid": true,
"x": {
"visible": true,
"title": ""
},
"y": {
"visible": true,
"title": ""
}
}
} 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.