Parallel Coordinates.

PRO

Connect an observation's multiple metrics with one line.

Live preview31 feature examples

LIVE EXAMPLE

Multiple product metrics

Match the page theme
Interact with the chart to see selection and range-change results here.
OptionsChanges are reflected in the preview and code.
Appearance and style5
Legend and interaction13
Title and dimensions3

Connect a product's measurements with one line. All values are sample data.

View code
Current preview
<div id="chart-container" style="width: 100%; min-width: 0;"></div>

<script type="module">
  import { defineCustomElement as define0 } from '@syidax/advanced-pro/components/sy-parallel-coordinates.js';
  define0();

  // Pro: complete registerLicense at app startup using your issued certificate.
  // The website preview certificate is not for use in customer apps.
  const specs = [
    {
      "id": "example-chart",
      "tag": "sy-parallel-coordinates",
      "props": {
        "data": [
          {
            "id": "a",
            "label": "Product A",
            "color": "#8263d9",
            "values": {
              "price": 30,
              "quality": 90,
              "speed": 65,
              "support": 80
            }
          },
          {
            "id": "b",
            "label": "Product B",
            "color": "#239c91",
            "values": {
              "price": 65,
              "quality": 75,
              "speed": 90,
              "support": 60
            }
          },
          {
            "id": "c",
            "label": "Product C",
            "color": "#e99954",
            "values": {
              "price": 45,
              "quality": 70,
              "speed": 75,
              "support": 95
            }
          }
        ],
        "dimensions": [
          {
            "id": "price",
            "label": "Price",
            "domain": [0, 100]
          },
          {
            "id": "quality",
            "label": "Quality",
            "domain": [0, 100]
          },
          {
            "id": "speed",
            "label": "Speed",
            "domain": [0, 100]
          },
          {
            "id": "support",
            "label": "Support",
            "domain": [0, 100]
          }
        ],
        "width": 640,
        "height": 360,
        "brandPosition": "bottom-right",
        "brandLogo": ""
      }
    }
  ];
  const container = document.querySelector('#chart-container');
  const elements = specs.map(({ tag, id, props }) => {
    const element = document.createElement(tag);
    element.id = id;
    Object.assign(element, props);
    element.setAttribute('aria-label', 'parallel-coordinates example chart');
    return element;
  });
  container.replaceChildren(...elements);
  const chart = elements.at(-1);
  const onEvent = event => {
    console.log('rowClick', event.detail);
  };
  chart.addEventListener('rowClick', onEvent);
  const observer = new ResizeObserver(([entry]) => {
    const width = Math.max(160, Math.floor(entry.contentRect.width));
    elements.forEach(element => { element.width = width; });
  });
  observer.observe(container);

  // In an SPA, call this function when the view is disposed.
  function disposeChart() {
    observer.disconnect();
    chart.removeEventListener('rowClick', onEvent);
    container.replaceChildren();
  }
</script>

Usage and data

#

Compare multidimensional patterns across products or observation groups.

Check units and axis directions. Use brushing to focus on a range when there are many lines.

Data contract

PropertyInput format
dataAn array of { id, label?, values: { dimensionId: number } }.
dimensionsEach axis's id, label, domain, and scale.

Updating data

Assign a new array or object to the property instead of mutating values inside an array. Chart events provide selection results through event.detail. When disposing of the view, clean up ResizeObserver and event listeners registered by your app.

Feature examples

#

Try 31 interactive feature examples and inspect their code. Select “Edit in preview” to combine more options in the settings panel above.

Lines and highlightingPRO

Hover over a row to reduce the opacity of other rows for comparison.

Interact with the chart to see results here.
View code

Axis labelsPRO

Show each axis name to identify its metric.

Interact with the chart to see results here.
View code

Inspect values with the pointerPRO

Point to data to view the value at that location.

Interact with the chart to see results here.
View code

Crosshair trackingPRO

Move the pointer to read horizontal and vertical coordinates alongside values.

Interact with the chart to see results here.
View code

Drag to zoom and panPRO

Drag to zoom and hold Shift to pan. Use Ctrl + wheel to zoom in or out.

Interact with the chart to see results here.
View code

Replay animationPRO

Redraw the same example to inspect its initial display animation.

Interact with the chart to see results here.
View code

AccessibilityPRO

Compare 2 examples of Accessibility. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

AnimationPRO

Compare 3 examples of Animation. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

AxesPRO

Compare 4 examples of Axes. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

BrushingPRO

Compare 4 examples of Brushing. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

ColorPRO

Compare 4 examples of Color. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

CrosshairPRO

Compare 3 examples of Crosshair. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Data inputPRO

Compare 3 examples of Data input. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

LinesPRO

Compare 4 examples of Lines. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Large datasetsPRO

Compare 2 examples of Large datasets. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

SizePRO

Compare 2 examples of Size. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

TooltipPRO

Compare 13 examples of Tooltip. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Zoom and panPRO

Compare 3 examples of Zoom and pan. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

BrushingPRO

Compare 1 examples of Brushing. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Context menuPRO

Compare 1 examples of Context menu. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

HoverPRO

Compare 1 examples of Hover. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Point ClickPRO

Compare 1 examples of Point Click. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Data context menuPRO

Compare 1 examples of Data context menu. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

RuntimePRO

Compare 1 examples of Runtime. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Selection ChangedPRO

Compare 1 examples of Selection Changed. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

ExportPRO

Compare 1 examples of Export. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Read coordinates and dataPRO

Compare 1 examples of Read coordinates and data. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Runtime APIPRO

Compare 2 examples of Runtime API. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

OptionalPRO

Compare 1 examples of Optional. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

OverviewPRO

Compare 4 examples of Overview. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Streaming · Add and update live dataPRO

Compare 5 examples of Add and update live data. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

API reference

#

The full public API for sy-parallel-coordinates. Pass objects and arrays as JavaScript properties. Select a name to view usage code and type definitions.

Key properties

Attribute / PropertyType / DefaultDescription
ParallelCoordinatesDataDefault: undefinedAn array of { id, label?, values: { dimensionId: number } }.
numberDefault: 900Chart width in pixels. Update with ResizeObserver when the container changes.
numberDefault: 400Chart height in pixels.
brandLogostringDefault: undefinedThe default is the Syidax logo. With the Pro chart.branding entitlement, use none or a PNG, JPEG, or WebP data URL.
brandPosition'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'Default: 'bottom-right'The corner where the logo is anchored. Applies equally to Community and Pro, on screen and in image exports.
ReadonlyArray<ParallelCoordinatesDimensionInput>Default: undefinedEach axis's id, label, domain, and scale.
lineWidthnumberDefault: 1.5Set as an HTML attribute or JavaScript property. type: number.
lineOpacitynumberDefault: .65Set as an HTML attribute or JavaScript property. type: number.
connectNullsbooleanDefault: falseSet as an HTML attribute or JavaScript property. type: boolean.
inactiveRowOpacitynumberDefault: .25Set as an HTML attribute or JavaScript property. type: number.
axisLabelsbooleanDefault: trueSet as an HTML attribute or JavaScript property. type: boolean.
chartTitlestringDefault: undefinedThe title inside the chart. Explain the data's unit and meaning alongside it.
chartSubtitlestringDefault: undefinedThe subtitle inside the chart.
CartesianTooltipInputDefault: undefinedTooltip settings for pointer-driven values, position, and content.
tooltipEnabledbooleanDefault: trueSet as an HTML attribute or JavaScript property. type: boolean.
animatedbooleanDefault: falseWhether to animate initial display and data changes.
animationDurationnumberDefault: 600Animation duration in milliseconds.
animationEasingParallelCoordinatesEasingDefault: 'ease-out'Allowed values: linear, ease-out, ease-in, ease-in-out. Default: 'ease-out'.
animationTypeParallelCoordinatesAnimationTypeDefault: undefinedAllowed values: initial, update. Default: undefined.
CartesianZoomInputDefault: undefinedSettings for zooming and the visible range.
CartesianCrosshairInputDefault: undefinedPass as a JavaScript property. type: CartesianCrosshairInput.
Other properties 12
Attribute / PropertyType / DefaultDescription
lineDashReadonlyArray<number>|stringDefault: []Pass as a JavaScript property. type: ReadonlyArray<number>|string.
stringDefault: 'auto'Set as an HTML attribute or JavaScript property. type: string.
activeColorstringDefault: '#f59e0b'Set as an HTML attribute or JavaScript property. type: string.
ParallelCoordinatesAxesInputDefault: undefinedPass as a JavaScript property. type: ParallelCoordinatesAxesInput.
axisBrushParallelCoordinatesBrushInputDefault: undefinedPass as a JavaScript property. type: ParallelCoordinatesBrushInput.
enableMouseTrackingbooleanDefault: trueSet as an HTML attribute or JavaScript property. type: boolean.
tooltipFormat(detail: ParallelCoordinatesHitDetail) => stringDefault: undefinedPass as a JavaScript property. type: (detail: ParallelCoordinatesHitDetail) => string.
streamSourceParallelCoordinatesStreamSourceDefault: undefinedA stream source for live data. Check the contract for the specific type.
streamMaxnumberDefault: undefinedThe maximum number of streaming data points to retain.
streamWindownumberDefault: undefinedThe streaming data range to keep visible.
ParallelCoordinatesEngineModeDefault: 'auto'Renderer selection: auto, standard, or pro. Engine selection is separate from permission to use a Pro chart type.
ParallelCoordinatesUnavailableBehaviourDefault: 'fallback'Allowed values: fallback, error. Default: 'fallback'.
Events 19
EventsDetail typeDescription
ParallelCoordinatesRenderResult & { tier: ParallelCoordinatesEngineTier }Emits rendering results in detail when chart drawing completes.
ParallelCoordinatesHitDetailCustomEvent.detail type: ParallelCoordinatesHitDetail. Event names are case-sensitive.
ParallelCoordinatesHitDetail | nullCustomEvent.detail type: ParallelCoordinatesHitDetail | null. Event names are case-sensitive.
ParallelCoordinatesSelectionChangeEventDetailCustomEvent.detail type: ParallelCoordinatesSelectionChangeEventDetail. Event names are case-sensitive.
ChartPointContextMenuEventDetail<ParallelCoordinatesHitDetail>CustomEvent.detail type: ChartPointContextMenuEventDetail<ParallelCoordinatesHitDetail>. Event names are case-sensitive.
{ count: number; replaced: number }CustomEvent.detail type: { count: number; replaced: number }. Event names are case-sensitive.
{ dropped: number }CustomEvent.detail type: { dropped: number }. Event names are case-sensitive.
CartesianTooltipEventDetailWhether to display the built-in tooltip.
voidCustomEvent.detail type: void. Event names are case-sensitive.
CartesianTooltipActionEventDetailCustomEvent.detail type: CartesianTooltipActionEventDetail. Event names are case-sensitive.
voidCustomEvent.detail type: void. Event names are case-sensitive.
voidCustomEvent.detail type: void. Event names are case-sensitive.
voidCustomEvent.detail type: void. Event names are case-sensitive.
CartesianZoomChangeEventDetailCustomEvent.detail type: CartesianZoomChangeEventDetail. Event names are case-sensitive.
ParallelCoordinatesBrushChangeEventDetailCustomEvent.detail type: ParallelCoordinatesBrushChangeEventDetail. Event names are case-sensitive.
ParallelCoordinatesBrushGestureEventDetailCustomEvent.detail type: ParallelCoordinatesBrushGestureEventDetail. Event names are case-sensitive.
ParallelCoordinatesBrushGestureEventDetailCustomEvent.detail type: ParallelCoordinatesBrushGestureEventDetail. Event names are case-sensitive.
ParallelCoordinatesBrushGestureEventDetailCustomEvent.detail type: ParallelCoordinatesBrushGestureEventDetail. Event names are case-sensitive.
ParallelCoordinatesCrosshairDetail|nullCustomEvent.detail type: ParallelCoordinatesCrosshairDetail|null. Event names are case-sensitive.
Methods 45

Stencil methods return Promises. Use await within an async function to read the result.

Method / ArgumentsReturn typeDescription
Promise<ParallelCoordinatesRenderResult>An asynchronous method. Check the argument and return types below.
Promise<ChartEngineStatus>Requested engine vs what runs, and why (CHART-ADD-08); a frozen or unlicensed chart reports the license outcome.
Promise<ParallelCoordinatesEngineTier>An asynchronous method. Check the argument and return types below.
Promise<string | undefined>An asynchronous method. Check the argument and return types below.
data: ParallelCoordinatesDataPromise<void>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesRow[]>An asynchronous method. Check the argument and return types below.
index: numberPromise<ParallelCoordinatesRow | null>An asynchronous method. Check the argument and return types below.
id: stringPromise<ParallelCoordinatesRow | null>An asynchronous method. Check the argument and return types below.
Promise<number>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesLayoutResult>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesAxis[]>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesLineModel[]>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesAxisModel[]>An asynchronous method. Check the argument and return types below.
Promise<{ invalidRecords: number; invalidIds: number; invalidValues: number; duplicates: number; invalidDimensions: number; duplicateDimensions: number; }>An asynchronous method. Check the argument and return types below.
row: ParallelCoordinatesRowInputPromise<void>An asynchronous method. Check the argument and return types below.
rows: ReadonlyArray<ParallelCoordinatesRowInput>Promise<void>An asynchronous method. Check the argument and return types below.
count: numberPromise<void>An asynchronous method. Check the argument and return types below.
rows: ReadonlyArray<ParallelCoordinatesRowInput>Promise<void>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesStreamSource | undefined>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
options: { enabled?: boolean; duration?: number; easing?: ParallelCoordinatesEasing; type?: ParallelCoordinatesAnimationType }Promise<void>An asynchronous method. Check the argument and return types below.
brushes: ReadonlyArray<ParallelCoordinatesAxisBrush>|nullPromise<ParallelCoordinatesBrushChangeEventDetail>Replace all inclusive axis ranges. Values stay in source units and dimensions combine with AND.
dimensionId: string, range: readonly[number,number]|nullPromise<ParallelCoordinatesBrushChangeEventDetail|null>Update one axis without replacing the other ranges; null clears only that axis. Invalid requests are no-ops.
dimensionId?: stringPromise<ParallelCoordinatesBrushChangeEventDetail>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesAxisBrush[]>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesRow[]>Matching source rows, including hidden styles. With no ranges, every source row matches.
Promise<ParallelCoordinatesBrushModel[]>An asynchronous method. Check the argument and return types below.
cssX: number, cssY: numberPromise<ParallelCoordinatesHitDetail | null>An asynchronous method. Check the argument and return types below.
index: numberPromise<ParallelCoordinatesHitDetail | null>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<ParallelCoordinatesSelection>An asynchronous method. Check the argument and return types below.
index: numberPromise<CartesianTooltipEventDetail | null>An asynchronous method. Check the argument and return types below.
index: numberPromise<CartesianTooltipEventDetail | null>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
request: CartesianZoomRequestPromise<CartesianZoomChangeEventDetail | null>Zoom to normalized 0..1 viewport windows: `x` / `y` as `{ min, max }` or `[min, max]` (`null` clears that orientation).
factor: number, anchorFraction?: numberPromise<CartesianZoomChangeEventDetail | null>Scale the current windows by `factor` (< 1 zooms in) around `anchorFraction` (0..1, default centre).
delta: { x?: number; y?: number }Promise<CartesianZoomChangeEventDetail | null>Slide the zoomed windows by normalized viewport units (`{ x?, y? }`); a no-op at the full extent.
Promise<CartesianZoomChangeEventDetail | null>Back to the full diagram.
Promise<CartesianZoomState | null>The current zoom state (`null` = the full diagram).
request?: CartesianZoomExtentRequestPromise<CartesianZoomExtentDetail | null>The full normalized viewport extent and axis key (`null` before the first layout).
request: CartesianCrosshairShowRequestPromise<boolean>Quiet sync: dataX is a zero-based dimension index; dataY uses that dimension's own units.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<ChartDataTable>An asynchronous method. Check the argument and return types below.