Skip to content

Documentation / @ripl/charts / SankeyChartOptions

Interface: SankeyChartOptions<TData> ​

Defined in: charts/src/charts/sankey.ts:109

Options for configuring a SankeyChart.

Extends ​

Type Parameters ​

Type ParameterDefault type
TDataunknown

Properties ​

PropertyTypeDescriptionInherited fromDefined in
animation?boolean | Partial<ChartAnimationOptions>Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions.BaseChartOptions.animationcharts/src/core/chart.ts:128
autoRender?booleanWhether the chart renders automatically on construction and after every Chart.update. Defaults to true.BaseChartOptions.autoRendercharts/src/core/chart.ts:122
description?stringAccessible description announced by screen readers (sets the rendering element's ARIA label). Defaults to the title text.BaseChartOptions.descriptioncharts/src/core/chart.ts:132
format?ValueFormatInputFormat applied to node and link values shown as text (e.g. tooltips).-charts/src/charts/sankey.ts:123
iterations?numberNumber of layout relaxation iterations (reserved for tuning node positioning).-charts/src/charts/sankey.ts:119
legend?ChartLegendInputLegend configuration. Shown automatically when there is more than one node; pass false to hide.-charts/src/charts/sankey.ts:121
linksSankeyLink[]The directional flows connecting nodes.-charts/src/charts/sankey.ts:113
nodePadding?numberVertical gap between stacked nodes in a column, in pixels. Defaults to 10.-charts/src/charts/sankey.ts:117
nodesSankeyNode<TData>[]The nodes in the diagram.-charts/src/charts/sankey.ts:111
nodeWidth?numberWidth of each node rectangle in pixels. Defaults to 20.-charts/src/charts/sankey.ts:115
padding?PaddingInputSpace reserved around the chart, in pixels. A single number applies to all four edges; a [top, right, bottom, left] tuple or a partial { top, right, bottom, left } object sets individual edges, leaving unspecified edges at the default. Defaults to 16.BaseChartOptions.paddingcharts/src/core/chart.ts:124
theme?string | ThemeTheme for this chart: a registered name ('light'/'dark'/'auto'), or a Theme. Falls back to the module default (see setDefaultTheme).BaseChartOptions.themecharts/src/core/chart.ts:130
title?string | Partial<ChartTitleOptions>Chart title as plain text, or a ChartTitleOptions object for full control.BaseChartOptions.titlecharts/src/core/chart.ts:126