SankeyOptions
Options for Sankey diagram
Extends
Omit<BaseChartOptions,"data">
Properties
colorGenerator?
optionalcolorGenerator:ColorGenerator
Optional function to call in order to establish the color to be used for each series
Inherited from
BaseChartOptions.colorGenerator
csvData?
optionalcsvData:string
Optional CSV data to load. Each line should be in the format source,target,value.
dataSource?
optionaldataSource:DataSource
Optional data source (of type DataSource, meaning both VisuallyJsModel and Selection are supported) from which to retrieve data to load into the chart.
Inherited from
dataSourceFilter?
optionaldataSourceFilter:ChartModelFilter
When you provide dataSource, you can also provide a filter which accepts or rejects specific nodes/groups in the data source.
Inherited from
BaseChartOptions.dataSourceFilter
defaultColor?
optionaldefaultColor:string
Optional color to use for every series. Overrides any colorGenerator.
Inherited from
emptyMessage?
optionalemptyMessage:string
Message to display when the chart has no data. Defaults to "No data".
Inherited from
height?
optionalheight:number
Height for the chart. If omitted, height is computed from the width of the chart's container
Inherited from
interactive?
optionalinteractive:boolean
Defaults to true - the charts responds to mouse hover events and highlights edges, nodes and paths.
jsonData?
optionaljsonData:VisuallyJsDefaultJSON
Optional dataset to load.
labelProperty?
optionallabelProperty:string
When using a data source, this property tells the chart which field contains node labels. It defaults to labels. If there is no value provided for the property with this key, the node's ID is used as the label.
labels?
optionallabels:object
Options for the node labels.
backgroundColor?
optionalbackgroundColor:string
Optional background color to use for node labels. Defaults to "#FFFFFF56".
font?
optionalfont:FontSpec
Optional font spec to use for node labels. Defaults to 12px.
padding?
optionalpadding:number
Optional padding to use for node labels. Defaults to 5 pixels.
legend?
optionallegend:boolean|LegendSpec
Either a boolean true/false, indicating the legend should be shown/hidden, or a spec for a legend.
Inherited from
linkColor?
optionallinkColor:string
Link color to use when linkColorStrategy is 'static'. Defaults to "#444444"
linkColorStrategy?
optionallinkColorStrategy:"source"|"target"|"static"|"source-target"
Strategy for link color: static uses a single color, source-target paints a gradient from source to target, target uses the target node color, source uses the source node color.
nodePadding?
optionalnodePadding:number
Spacing, in pixels, between nodes. Defaults to 10.
nodeWidth?
optionalnodeWidth:number
Width, in pixels, of nodes. Defaults to 15.
padding?
optionalpadding:number
Padding to leave around the chart. Defaults to 20 pixels.
resizeObserver?
optionalresizeObserver:boolean
Defaults to true, meaning the chart will redraw when its container element resizes.
Inherited from
BaseChartOptions.resizeObserver
style?
optionalstyle:ChartStyleOptions
Styles for legend and grid.
Inherited from
subtitle?
optionalsubtitle:SubtitleSpec
Subtitle for the chart.
Inherited from
title?
optionaltitle:ChartTitleSpec
Title for the chart.
Inherited from
titlePadding?
optionaltitlePadding:number
Padding to leave underneath the title
Inherited from
tooltip?
optionaltooltip:TooltipOptions
Options for a tooltip for the chart.
Inherited from
tooltipSuffix?
optionaltooltipSuffix:string
Optional suffix to append to tooltip labels.
url?
optionalurl:string
Optional URL from which to retrieve data to load into the chart
Inherited from
valueProperty?
optionalvalueProperty:string
When using a data source, this property tells the chart which field contains edge values. It defaults to value.
width?
optionalwidth:number
Width for the chart. If omitted, width is computed from the width of the chart's container
Inherited from
zoom?
optionalzoom:object
Optional zoom configuration.
enabled?
optionalenabled:boolean
Whether or not zoom is enabled.
initialValue?
optionalinitialValue:number
Initial zoom value. Defaults to 1.
range?
optionalrange: [number,number]
Zoom range to support. Defaults to [0.05, 3]