Radar.

COMMUNITY

Compare multiple metrics in a single outline.

Live preview22 feature examples

LIVE EXAMPLE

Product capabilities

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 style8
Legend and interaction13
Title and dimensions3

Compare two products on a shared 0–100 scale. 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/components/sy-radar-chart.js';
  define0();

  const specs = [
    {
      "id": "example-chart",
      "tag": "sy-radar-chart",
      "props": {
        "engine": "standard",
        "categories": ["Performance", "Quality", "Price", "Support", "Scalability"],
        "data": [
          {
            "name": "A",
            "data": [90, 80, 65, 85, 70],
            "color": "#8263d9"
          },
          {
            "name": "B",
            "data": [70, 90, 85, 60, 80],
            "color": "#239c91"
          }
        ],
        "min": 0,
        "max": 100,
        "variant": "area",
        "legend": true,
        "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', 'radar example chart');
    return element;
  });
  container.replaceChildren(...elements);
  const chart = elements.at(-1);
  const onEvent = event => {
    console.log('pointClick', event.detail);
  };
  chart.addEventListener('pointClick', 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('pointClick', onEvent);
    container.replaceChildren();
  }
</script>

Usage and data

#

Compare product or team capabilities normalized to the same scale.

Axis order changes the shape's appearance. Do not directly compare raw values with different units.

Data contract

PropertyInput format
dataEach series is { name, data, color? }.
categoriesMetric names in the same order as data.
minTogether with max, defines the shared measurement range.

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 22 interactive feature examples and inspect their code. Select “Edit in preview” to combine more options in the settings panel above.

Polygon grid

Compare values on a polygon grid connecting the metrics.

Interact with the chart to see results here.
View code

Fill and outline

Show differences between two products using translucent areas and thick lines.

Interact with the chart to see results here.
View code

Inspect values with the pointer

Point to data to view the value at that location.

Interact with the chart to see results here.
View code

Crosshair tracking

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

Interact with the chart to see results here.
View code

Replay animation

Redraw the same example to inspect its initial display animation.

Interact with the chart to see results here.
View code

Animation

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

Interact with the chart to see results here.
View code

Area fill

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

Interact with the chart to see results here.
View code

Metrics and items

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

Interact with the chart to see results here.
View code

Crosshair

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

Interact with the chart to see results here.
View code

Point editing

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

Interact with the chart to see results here.
View code

Legend

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

Interact with the chart to see results here.
View code

Multiple series

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

Interact with the chart to see results here.
View code

Appearance and style

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

Interact with the chart to see results here.
View code

Tooltip

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

Interact with the chart to see results here.
View code

Context menu

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

Data change events

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

Interact with the chart to see results here.
View code

Data context menu

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

Pointer Events

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

Interact with the chart to see results here.
View code

Read coordinates and data

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 API

Compare 1 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

Overview

Compare 1 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 2 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-radar-chart. Pass objects and arrays as JavaScript properties. Select a name to view usage code and type definitions.

Key properties

Attribute / PropertyType / DefaultDescription
RadarChartDataDefault: []Each series is { name, data, color? }.
string[]Default: []Metric names in the same order as data.
number | 'auto'Default: 'auto'Together with max, defines the shared measurement range.
numberDefault: 360Chart width in pixels. Update with ResizeObserver when the container changes.
numberDefault: 360Chart 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.
RadarChartVariantDefault: 'line'Allowed values: area, line. Default: 'line'.
startAnglenumberDefault: 0Angle of category 0 in DEGREES (0 = 12 o'clock, clockwise +).
lineWidthnumberDefault: 2Set as an HTML attribute or JavaScript property. type: number.
fillOpacitynumberDefault: 0.25Area-variant fill alpha (0..1).
gridShapeRadarGridShapeDefault: 'polygon'Allowed values: circle, polygon. Default: 'polygon'.
showMarkersbooleanDefault: trueSet as an HTML attribute or JavaScript property. type: boolean.
markerRadiusnumberDefault: 3Set as an HTML attribute or JavaScript property. type: number.
showRingLabelsbooleanDefault: 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.
tooltipShowbooleanDefault: trueWhether to display the built-in tooltip.
RadarChartTooltipInputDefault: undefinedTooltip settings for pointer-driven values, position, and content.
CartesianCrosshairInputDefault: undefinedCrosshair guide — the SAME parameter names as the cartesian charts, read on the polar pane. Off by default. Accepts `true` / a partial spec `{ show, mode, snap, color, dash }`. `mode 'vertical'` → the category axis guide = a radial spoke; `mode 'horizontal'` → the value axis guide = a concentric ring; `mode 'cross'` → both. `snap 'nearest'` snaps to the nearest vertex, `'index'` to the nearest category, `'off'` is the raw pointer. Objects can't ride an attribute — set it as a property (or via a `<sy-chart>` script).
booleanDefault: falseWhether to show a legend for series or items.
legendPositionRadarChartLegendPositionDefault: 'bottom'Where the legend is positioned.
animatedbooleanDefault: falseWhether to animate initial display and data changes.
animationDurationnumberDefault: 450Animation duration in milliseconds.
animationEasingRadarChartEasingDefault: 'ease-out'Allowed values: linear, ease-out, ease-in, ease-in-out. Default: 'ease-out'.
animationTypeRadarChartAnimationTypeDefault: undefinedAllowed values: initial, update. Default: undefined.
Other properties 25
Attribute / PropertyType / DefaultDescription
number | 'auto'Default: 'auto'Allowed values: auto. Default: 'auto'.
tickIntervalnumber | 'auto'Default: 'auto'Allowed values: auto. Default: 'auto'.
number | stringDefault: undefinedPass as a JavaScript property. type: number | string.
centerXnumber | stringDefault: undefinedPass as a JavaScript property. type: number | string.
centerYnumber | stringDefault: undefinedPass as a JavaScript property. type: number | string.
stringDefault: '#2563eb'Set as an HTML attribute or JavaScript property. type: string.
ReadonlyArray<string>Default: undefinedMulti-series palette. Per-series `color` always wins.
gridColorstringDefault: '#e5e7eb'Set as an HTML attribute or JavaScript property. type: string.
ringLabelColorstringDefault: '#9ca3af'Set as an HTML attribute or JavaScript property. type: string.
ringLabelFontSizenumberDefault: 10Set as an HTML attribute or JavaScript property. type: number.
ringLabelFormatstringDefault: undefinedSet as an HTML attribute or JavaScript property. type: string.
categoryLabelColorstringDefault: '#374151'Set as an HTML attribute or JavaScript property. type: string.
categoryLabelFontSizenumberDefault: 12Set as an HTML attribute or JavaScript property. type: number.
tooltipFormat(detail: RadarChartPointerEventDetail) => stringDefault: undefinedPass as a JavaScript property. type: (detail: RadarChartPointerEventDetail) => string.
enableMouseTrackingbooleanDefault: trueSet as an HTML attribute or JavaScript property. type: boolean.
legendItemsLegendItem[]Default: undefinedPass as a JavaScript property. type: LegendItem[].
activeSeriesIndexnumberDefault: undefinedSet as an HTML attribute or JavaScript property. type: number.
seriesActiveTriggerRadarChartSeriesActiveTriggerDefault: 'click'Allowed values: hover, click, custom. Default: 'click'.
booleanDefault: falseEnables direct pointer editing of point values.
streamSourceRadarChartStreamSourceDefault: undefinedA stream source for live data. Check the contract for the specific type.
streamWindownumberDefault: undefinedThe streaming data range to keep visible.
streamMaxnumberDefault: undefinedThe maximum number of streaming data points to retain.
RadarChartEngineModeDefault: 'auto'Renderer selection: auto, standard, or pro. Engine selection is separate from permission to use a Pro chart type.
proThresholdnumberDefault: 50_000Set as an HTML attribute or JavaScript property. type: number.
RadarChartUnavailableBehaviourDefault: 'fallback'Allowed values: fallback, error, throw. Default: 'fallback'.
Events 16
EventsDetail typeDescription
RadarChartRenderResult & { tier: RadarChartEngineTier }Emits rendering results in detail when chart drawing completes.
RadarChartPointerEventDetailA point selection event. Read the selected data and index from CustomEvent.detail.
RadarChartPointerEventDetail | nullCustomEvent.detail type: RadarChartPointerEventDetail | null. Event names are case-sensitive.
CartesianCrosshairEventDetail | nullCustomEvent.detail type: CartesianCrosshairEventDetail | null. Event names are case-sensitive.
ChartPointContextMenuEventDetail<RadarChartPointerEventDetail>CustomEvent.detail type: ChartPointContextMenuEventDetail<RadarChartPointerEventDetail>. Event names are case-sensitive.
RadarChartPointerEventDetailCustomEvent.detail type: RadarChartPointerEventDetail. Event names are case-sensitive.
{ index: number; seriesId: string; label: string; disabled: boolean }CustomEvent.detail type: { index: number; seriesId: string; label: string; disabled: boolean }. Event names are case-sensitive.
{ index: number; seriesId: string; disabled: boolean }CustomEvent.detail type: { index: number; seriesId: string; disabled: boolean }. Event names are case-sensitive.
{ count: number }CustomEvent.detail type: { count: number }. Event names are case-sensitive.
{ dropped: number }CustomEvent.detail type: { dropped: number }. 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.
RadarChartTooltipShowEventDetailWhether to display the built-in tooltip.
voidCustomEvent.detail type: void. Event names are case-sensitive.
RadarChartTooltipActionEventDetailCustomEvent.detail type: RadarChartTooltipActionEventDetail. Event names are case-sensitive.
Methods 20

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

Method / ArgumentsReturn typeDescription
Promise<RadarChartRenderResult>An asynchronous method. Check the argument and return types below.
Promise<RadarChartEngineTier>An asynchronous method. Check the argument and return types below.
data: RadarChartDataPromise<void>An asynchronous method. Check the argument and return types below.
series: RadarChartData[number], opts?: { insertAt?: number }Promise<number>An asynchronous method. Check the argument and return types below.
idOrIndex: string | numberPromise<boolean>An asynchronous method. Check the argument and return types below.
idOrIndex: string | number, patch: Partial<RadarChartData[number]>Promise<boolean>An asynchronous method. Check the argument and return types below.
seriesIdOrIndex: string | number, categoryIdOrIndex: string | number, value: number | nullPromise<boolean>An asynchronous method. Check the argument and return types below.
frame: RadarStreamFramePromise<void>Append a streaming FRAME (one value per category). Without a stream source, replaces series 0's data.
frames: ReadonlyArray<RadarStreamFrame>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.
frames: ReadonlyArray<RadarStreamFrame>Promise<void>An asynchronous method. Check the argument and return types below.
Promise<RadarChartStreamSource | undefined>An asynchronous method. Check the argument and return types below.
options: { duration?: number; easing?: RadarChartEasing; enabled?: boolean; type?: RadarChartAnimationType }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.
Promise<void>An asynchronous method. Check the argument and return types below.
cssX: number, cssY: numberPromise<RadarChartPointerEventDetail | null>An asynchronous method. Check the argument and return types below.
seriesIndex: number, categoryIndex: numberPromise<RadarChartPointerEventDetail | null>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<ChartEngineStatus>Requested engine vs what runs, and why (CHART-ADD-08): always Standard (this type has no WebGPU renderer); read without side effects, never consults the license.