Interface: SankeyNodeObject

Highcharts. SankeyNodeObject

A node in a sankey diagram.

Extends

Members

category :number|string

For categorized axes this property holds the category name for the point. For other axes it holds the X value.

Type:
  • number | string
Inherited From:

colorIndex :number

The color index of the auto generated node, especially for use in styled mode.

Type:
  • number
Overrides:

column :number

An optional column index of where to place the node. The default behaviour is to place it next to the preceding node.

Type:
  • number
Since:
  • 6.0.5
See also:

dataGroup :Highcharts.DataGroupingInfoObject|undefined

Highstock only. If a point object is created by data grouping, it doesn't reflect actual points in the raw data. In this case, the dataGroup property holds information that points back to the raw data.

  • dataGroup.start is the index of the first raw data point in the group.

  • dataGroup.length is the amount of points in the group.

Type:
Inherited From:

high :number|undefined

Range series only. The high or maximum value for each data point.

Type:
  • number | undefined
Inherited From:

id :string

The id of the auto-generated node, refering to the from or to setting of the link.

Type:
  • string

low :number|undefined

Range series only. The low or minimum value for each data point.

Type:
  • number | undefined
Inherited From:

name :string

The name to display for the node in data labels and tooltips. Use this when the name is different from the id. Where the id must be unique for each node, this is not necessary for the name.

Type:
  • string
Overrides:
See also:

offset :number

The vertical offset of a node in terms of weight. Positive values shift the node downwards, negative shift it upwards.

Type:
  • number
Since:
  • 6.0.5
Default Value:
  • 0
See also:

options :Highcharts.PointOptionsObject

The point's options as applied in the initial configuration, or extended through Point.update.

In TypeScript you have to extend PointOptionsObject via an additional interface to allow custom data options:

declare interface PointOptionsObject {
    customProperty: string;
}
Type:
Inherited From:

percentage :number

The percentage for points in a stacked series or pies.

Type:
  • number
Inherited From:

properties :*

In Highmaps, when data is loaded from GeoJSON, the GeoJSON item's properies are copied over here.

Type:
  • *
Inherited From:

selected :boolean

Whether the point is selected or not.

Type:
  • boolean
Inherited From:
See also:

series :Highcharts.Series

The series object associated with the point.

Type:
Inherited From:

sliced :boolean|undefined

Pie series only. Whether to display a slice offset from the center.

Type:
  • boolean | undefined
Inherited From:

total :number

The total of values in either a stack for stacked series, or a pie in a pie series.

Type:
  • number
Inherited From:

visible :boolean

For certain series types, like pie charts, where individual points can be shown or hidden.

Type:
  • boolean
Inherited From:

x :number

The x value of the point.

Type:
  • number
Inherited From:

y :number|undefined

The y value of the point.

Type:
  • number | undefined
Inherited From:

Methods

cancelSonify( [fadeOut])

Cancel sonification of a point. Calls onEnd functions.

Parameters:
Name Type Argument Default Description
fadeOut boolean <optional>
false

Whether or not to fade out as we stop. If false, the points are cancelled synchronously.

Inherited From:
Requires:
  • module:modules/sonification

getClassName()

Get the CSS class names for individual points. Used internally where the returned value is set on every point.

Inherited From:
Returns:
string .

The class names.

getLabelConfig()

Return the configuration hash needed for the data label and tooltip formatters.

Inherited From:
Returns:
Highcharts.PointLabelObject .

Abstract object used in formatters and formats.

getZone()

In a series with zones, return the zone that the point belongs to.

Inherited From:
Returns:
Highcharts.PlotSeriesZonesOptions .

The zone item.

haloPath(size)

Get the path definition for the halo, which is usually a shadow-like circle around the currently hovered point.

Parameters:
Name Type Description
size number

The radius of the circular halo.

Inherited From:
Returns:
Highcharts.SVGElement .

The path definition.

init(series, options [, x])

Initialize the point. Called internally based on the series.data option.

Parameters:
Name Type Argument Description
series Highcharts.Series

The series object containing this point.

options Highcharts.PointOptionsType

The data in either number, array or object format.

x number <optional>

Optionally, the X value of the point.

Inherited From:
Fires:
  • Highcharts.Point#event:afterInit
Returns:
Highcharts.Point .

The Point instance.

onMouseOut()

Runs on mouse out from the point. Called internally from mouse and touch events.

Inherited From:
Fires:
  • Highcharts.Point#event:mouseOut
Returns:

onMouseOver(e)

Runs on mouse over the point. Called internally from mouse and touch events.

Parameters:
Name Type Description
e Highcharts.PointerEventObject

The event arguments.

Inherited From:
Returns:

optionsToObject(options)

Transform number or array configs into objects. Also called for object configs. Used internally to unify the different configuration formats for points. For example, a simple number 10 in a line series will be transformed to { y: 10 }, and an array config like [1, 10] in a scatter series will be transformed to { x: 1, y: 10 }.

Parameters:
Name Type Description
options Highcharts.PointOptionsType

The input option.

Inherited From:
Returns:
Highcharts.Dictionary.<*> .

Transformed options.

remove( [redraw] [, animation])

Remove a point and optionally redraw the series and if necessary the axes

Parameters:
Name Type Argument Default Description
redraw boolean <optional>
true

Whether to redraw the chart or wait for an explicit call. When doing more operations on the chart, for example running point.remove() in a loop, it is best practice to set redraw to false and call chart.redraw() after.

animation boolean | Highcharts.AnimationOptionsObject <optional>
false

Whether to apply animation, and optionally animation configuration.

Inherited From:
Returns:
Try it

select( [selected] [, accumulate])

Toggle the selection status of a point.

Parameters:
Name Type Argument Default Description
selected boolean <optional>

When true, the point is selected. When false, the point is unselected. When null or undefined, the selection state is toggled.

accumulate boolean <optional>
false

When true, the selection is added to other selected points. When false, other selected points are deselected. Internally in Highcharts, when allowPointSelect is true, selected points are accumulated on Control, Shift or Cmd clicking the point.

Inherited From:
See also:
Fires:
  • Highcharts.Point#event:select
  • Highcharts.Point#event:unselect
Returns:
Try it

setNestedProperty(object, value, key)

Set a value in an object, on the property defined by key. The key supports nested properties using dot notation. The function modifies the input object and does not make a copy.

Parameters:
Name Type Description
object T

The object to set the value on.

value *

The value to set.

key string

Key to the property to set.

Inherited From:
  • Highcharts.Point#setNestedProperty.<T>
Returns:
T .

The modified object.

setState( [state] [, move])

Set the point's state.

Parameters:
Name Type Argument Description
state string <optional>

The new state, can be one of '' (an empty string), hover, select or inactive.

move boolean <optional>

State for animation.

Inherited From:
Fires:
  • Highcharts.Point#event:afterSetState

sonify(options)

Sonify a single point.

Parameters:
Name Type Description
options Highcharts.PointSonifyOptionsObject

Options for the sonification of the point.

Inherited From:
Requires:
  • module:modules/sonification
Try it

tooltipFormatter(pointFormat)

Extendable method for formatting each point's tooltip line.

Parameters:
Name Type Description
pointFormat string

The point format.

Inherited From:
Overrides:
Returns:
string .

A string to be concatenated in to the common tooltip text.

update(options [, redraw] [, animation])

Update point with new options (typically x/y data) and optionally redraw the series.

Parameters:
Name Type Argument Default Description
options Highcharts.PointOptionsType

The point options. Point options are handled as described under the series.type.data item for each series type. For example for a line series, if options is a single number, the point will be given that number as the marin y value. If it is an array, it will be interpreted as x and y values respectively. If it is an object, advanced options are applied.

redraw boolean <optional>
true

Whether to redraw the chart after the point is updated. If doing more operations on the chart, it is best practice to set redraw to false and call chart.redraw() after.

animation boolean | Highcharts.AnimationOptionsObject <optional>
true

Whether to apply animation, and optionally animation configuration.

Inherited From:
Fires:
  • Highcharts.Point#event:update
Returns:
Try it

zoomTo()

Highmaps only. Zoom in on the point using the global animation.

Inherited From:
Requires:
  • module:modules/map
Try it