The Highcharts object is the placeholder for all other members, and various utility functions. The most important member of the namespace would be the chart constructor.
Example
let chart = Highcharts.chart('container', { ... });
Classes
- AST
- AccessibilityComponent
- Annotation
- AnnotationControlPoint
- Axis
- Chart
- Color
- ColorAxis
- Data
- DataTable
- EqualEarth
- Exporting
- Fullscreen
- GanttChart
- HttpUtilities
- KeyboardNavigationHandler
- LambertConformalConic
- Legend
- MapChart
- MapView
- Miller
- Orthographic
- Point
- Pointer
- SVGElement
- SVGRenderer
- Series
- Sonification
- SonificationInstrument
- SonificationSpeaker
- StandaloneNavigator
- StockChart
- SynthPatch
- Tick
- Tooltip
- WebMercator
Members
-
<static> charts :Array.<(Highcharts.Chart|undefined)>
-
An array containing the current chart objects in the page. A chart's position in the array is preserved throughout the page's lifetime. When a chart is destroyed, the array item becomes
undefined.Type:
- Array.<(Highcharts.Chart|undefined)>
-
<static> dateFormats :Record.<string, Highcharts.TimeFormatCallbackFunction>
-
A hook for defining additional date format specifiers. New specifiers are defined as key-value pairs by using the specifier as key, and a function which takes the timestamp as value. This function returns the formatted portion of the date.
Using
dateFormatsis also a convenient way to define new keys for complex locale-aware date formats compatible with the Intl.DateTimeFormat browser API, whenever the built-in formats are not sufficient.Type:
- Record.<string, Highcharts.TimeFormatCallbackFunction>
Try it
-
<static> defaultOptions :Highcharts.Options
-
Global default settings.
Type:
- Highcharts.Options
-
<static> maps :Record.<string, *>
-
Contains all loaded map data for Highmaps.
Type:
- Record.<string, *>
-
<static> sonification :Highcharts.SonificationGlobalObject
-
Global Sonification classes and objects.
Type:
-
<static> theme :Highcharts.Options
-
Theme options that should get applied to the chart. In module mode it might not be possible to change this property because of read-only restrictions, instead use Highcharts.setOptions.
Type:
- Highcharts.Options
- Deprecated:
-
- Yes
Methods
-
<static> addEvent
(el, type, fn [, options]) -
Add an event listener.
Parameters:
Name Type Argument Description elHighcharts.Class.<T> | T The element or object to add a listener to. It can be a HTMLDOMElement, an Highcharts.SVGElement or any other object.
typestring The event type.
fnHighcharts.EventCallbackFunction.<T> | function The function callback to execute when the event is fired.
optionsHighcharts.EventOptionsObject <optional>
Options for adding the event.
Returns:
function .A callback function to remove the added event.
Try it
-
<static> ajax(settings)
-
Perform an Ajax call.
Parameters:
Name Type Description settingsHighcharts.AjaxSettingsObject The Ajax settings to use.
Returns:
false | undefined .Returns false, if error occurred.
-
<static> animObject( [animation])
-
Get the animation in object form, where a disabled animation is always returned as
{ duration: 0 }.Parameters:
Name Type Argument Default Description animationboolean | Highcharts.AnimationOptionsObject <optional>
0 An animation setting. Can be an object with duration, complete and easing properties, or a boolean to enable or disable.
Returns:
Highcharts.AnimationOptionsObject .An object with at least a duration property.
-
<static> animate(el, params [, opt])
-
The global animate method, which uses Fx to create individual animators.
Parameters:
Name Type Argument Description elHighcharts.HTMLDOMElement | Highcharts.SVGElement The element to animate.
paramsHighcharts.CSSObject | Highcharts.SVGAttributes An object containing key-value pairs of the properties to animate. Supports numeric as pixel-based CSS properties for HTML objects and attributes for SVGElements.
optPartial.<Highcharts.AnimationOptionsObject> <optional>
Animation options.
Returns:
-
<static> arrayMax(data)
-
Non-recursive method to find the lowest member of an array.
Math.maxraises a maximum call stack size exceeded error in Chrome when trying to apply more than 150.000 points. This method is slightly slower, but safe.Parameters:
Name Type Description dataArray.<*> An array of numbers.
Returns:
number .The highest number.
-
<static> arrayMin(data)
-
Non-recursive method to find the lowest member of an array.
Math.minraises a maximum call stack size exceeded error in Chrome when trying to apply more than 150.000 points. This method is slightly slower, but safe.Parameters:
Name Type Description dataArray.<*> An array of numbers.
Returns:
number .The lowest number.
-
<static> attr(elem [, keyOrAttribs] [, value])
-
Set or get an attribute or an object of attributes.
To use as a setter, pass a key and a value, or let the second argument be a collection of keys and values. When using a collection, passing a value of
nullorundefinedwill remove the attribute.To use as a getter, pass only a string as the second argument.
Parameters:
Name Type Argument Description elemHighcharts.HTMLDOMElement | Highcharts.SVGDOMElement The DOM element to receive the attribute(s).
keyOrAttribsstring | Highcharts.HTMLAttributes | Highcharts.SVGAttributes <optional>
The property or an object of key-value pairs.
valuenumber | string <optional>
The value if a single property is set.
Returns:
string | null | undefined .When used as a getter, return the value.
-
<static> chart( [renderTo], options [, callback])
-
Factory function for basic charts.
Parameters:
Name Type Argument Description renderTostring | Highcharts.HTMLDOMElement <optional>
The DOM element to render to, or its id.
optionsHighcharts.Options The chart options structure.
callbackHighcharts.ChartCallbackFunction <optional>
Function to run when the chart has loaded and all external images are loaded. Defining a chart.events.load handler is equivalent.
Returns:
Highcharts.Chart .Returns the Chart object.
Example
// Render a chart in to div#container let chart = Highcharts.chart('container', { title: { text: 'My chart' }, series: [{ data: [1, 3, 2, 4] }] }); -
<static> clearTimeout(id)
-
Internal clear timeout. The function checks that the
idwas not removed (e.g. bychart.destroy()). For the details see issue #7901.Parameters:
Name Type Description idnumber | undefined Id of a timeout.
-
<static> color(input)
-
Creates a color instance out of a color string.
Parameters:
Name Type Description inputHighcharts.ColorType The input color.
Returns:
Highcharts.Color .Color instance
-
<static> correctFloat(num [, prec])
-
Fix JS round off float errors.
Parameters:
Name Type Argument Default Description numnumber A float number to fix.
precnumber <optional>
14 The precision.
Returns:
number .The corrected float number.
-
<static> createElement(tag [, attribs] [, styles] [, parent] [, nopad])
-
Utility function to create an HTML element with attributes and styles.
Parameters:
Name Type Argument Default Description tagstring The HTML tag.
attribsHighcharts.HTMLAttributes <optional>
Attributes as an object of key-value pairs.
stylesHighcharts.CSSObject <optional>
Styles as an object of key-value pairs.
parentHighcharts.HTMLDOMElement <optional>
The parent HTML object.
nopadboolean <optional>
false If true, remove all padding, border and margin.
Returns:
Highcharts.HTMLDOMElement .The created DOM element.
-
<static> css(el, styles)
-
Set CSS on a given element.
Parameters:
Name Type Description elHighcharts.HTMLDOMElement | Highcharts.SVGDOMElement An HTML DOM element.
stylesHighcharts.CSSObject Style object with camel case property names.
Returns:
-
<static> data()
-
Creates a data object to parse data for a chart.
-
<static> defined(obj)
-
Check if an object is null or undefined.
Parameters:
Name Type Description obj* The object to check.
Returns:
boolean .False if the object is null or undefined, otherwise true.
-
<static> destroyObjectProperties(obj [, except])
-
Utility method that destroys any SVGElement instances that are properties on the given object. It loops all properties and invokes destroy if there is a destroy method. The property is then delete.
Parameters:
Name Type Argument Description obj* The object to destroy properties on.
except* <optional>
Exception, do not destroy this property, only delete it.
-
<static> discardElement(element)
-
Discard a HTML element
Parameters:
Name Type Description elementHighcharts.HTMLDOMElement The HTML node to discard.
-
<static> downloadSVGLocal(svg, options)
-
Get data URL to an image of an SVG and call download on it options object:
-
filename: Name of resulting downloaded file without extension. Default is
chart. -
type: File type of resulting download. Default is
image/png. -
scale: Scaling factor of downloaded image compared to source. Default is
1. -
libURL: URL pointing to location of dependency scripts to download on demand. Default is the exporting.libURL option of the global Highcharts options pointing to our server.
Parameters:
Name Type Description svgstring The generated SVG
optionsHighcharts.ExportingOptions The exporting options
- Deprecated:
-
- Yes
-
-
<static> erase(arr, item)
-
Remove the last occurence of an item from an array.
Parameters:
Name Type Description arrArray.<*> The array.
item* The item to remove.
Returns:
-
<static> error(code [, stop] [, chart] [, params])
-
Provide error messages for debugging, with links to online explanation. This function can be overridden to provide custom error handling.
Parameters:
Name Type Argument Default Description codenumber | string The error code. See errors.xml for available codes. If it is a string, the error message is printed directly in the console.
stopboolean <optional>
false Whether to throw an error or just log a warning in the console.
chartHighcharts.Chart <optional>
Reference to the chart that causes the error. Used in 'debugger' module to display errors directly on the chart. Important note: This argument is undefined for errors that lack access to the Chart instance. In such case, the error will be displayed on the last created chart.
paramsHighcharts.Dictionary.<string> <optional>
Additional parameters for the generated message.
Returns:
Try it
-
<static> extend
(a, b) -
Utility function to extend an object with the members of another.
Parameters:
Name Type Description aT | undefined The object to be extended.
bPartial.<T> The object to add to the first one.
Returns:
T .Object a, the original object.
-
<static> extendClass
(parent, members) -
Extend a prototyped class by new members.
Parameters:
Name Type Description parentHighcharts.Class.<T> The parent prototype to inherit.
membersHighcharts.Dictionary.<*> A collection of prototype members to add or override compared to the parent prototype.
- Deprecated:
-
- Yes
Returns:
Highcharts.Class.<T> .A new prototype.
-
<static> find
(arr, callback) -
Return the value of the first element in the array that satisfies the provided testing function.
Parameters:
Name Type Description arrArray.<T> The array to test.
callbackfunction The callback function. The function receives the item as the first argument. Return
trueif this item satisfies the condition.Returns:
T | undefined .The value of the element.
-
<static> fireEvent
(el, type [, eventArguments] [, defaultFunction]) -
Fire an event that was registered with Highcharts#addEvent.
Parameters:
Name Type Argument Description elT The object to fire the event on. It can be a HTMLDOMElement, an Highcharts.SVGElement or any other object.
typestring The type of event.
eventArgumentsHighcharts.Dictionary.<*> | Event <optional>
Custom event arguments that are passed on as an argument to the event handler.
defaultFunctionHighcharts.EventCallbackFunction.<T> | function <optional>
The default function to execute if the other listeners haven't returned false.
Returns:
-
<static> ganttChart(renderTo, options [, callback])
-
The factory function for creating new gantt charts. Creates a new GanttChart object with different default options than the basic Chart.
Parameters:
Name Type Argument Description renderTostring | Highcharts.HTMLDOMElement The DOM element to render to, or its id.
optionsHighcharts.Options The chart options structure.
callbackHighcharts.ChartCallbackFunction <optional>
Function to run when the chart has loaded and all external images are loaded. Defining a chart.events.load handler is equivalent.
Returns:
Highcharts.GanttChart .Returns the Chart object.
Example
// Render a chart in to div#container let chart = Highcharts.ganttChart('container', { title: { text: 'My chart' }, series: [{ data: ... }] }); -
<static> geojson(json [, hType])
-
Highcharts Maps only. Restructure a GeoJSON or TopoJSON object in preparation to be read directly by the series.mapData option. The object will be broken down to fit a specific Highcharts type, either
map,maplineormappoint. Meta data in GeoJSON's properties object will be copied directly over to Highcharts.Point.properties in Highcharts Maps.Parameters:
Name Type Argument Default Description jsonHighcharts.GeoJSON | Highcharts.TopoJSON The GeoJSON or TopoJSON structure to parse, represented as a JavaScript object.
hTypestring <optional>
map The Highcharts Maps series type to prepare for. Setting "map" will return GeoJSON polygons and multipolygons. Setting "mapline" will return GeoJSON linestrings and multilinestrings. Setting "mappoint" will return GeoJSON points and multipoints.
Requires:
- module:modules/map
Returns:
Array.<*> .An object ready for the
mapDataoption.Try it
-
<static> getDeferredAnimation(chart, animation [, series])
-
Get the defer as a number value from series animation options.
Parameters:
Name Type Argument Description chartHighcharts.Chart The chart instance.
animationboolean | Highcharts.AnimationOptionsObject An animation setting. Can be an object with duration, complete and easing properties, or a boolean to enable or disable.
seriesHighcharts.Series <optional>
Series to defer animation.
Returns:
number .The numeric value.
-
<static> getJSON(url, success)
-
Get a JSON resource over XHR, also supporting CORS without preflight.
Parameters:
Name Type Description urlstring The URL to load.
successfunction The success callback. For error handling, use the
Highcharts.ajaxfunction instead. -
<static> getMagnitude(num)
-
Get the magnitude of a number.
Parameters:
Name Type Description numnumber The number.
Returns:
number .The magnitude, where 1-9 are magnitude 1, 10-99 magnitude 2 etc.
-
<static> getOptions()
-
Get the updated default options. Until 3.0.7, merely exposing defaultOptions for outside modules wasn't enough because the setOptions method created a new object.
Returns:
Highcharts.Options .Default options.
-
<static> getStyle(el, prop [, toInt])
-
Get the computed CSS value for given element and property, only for numerical properties. For width and height, the dimension of the inner box (excluding padding) is returned. Used for fitting the chart within the container.
Parameters:
Name Type Argument Default Description elHighcharts.HTMLDOMElement An HTML element.
propstring The property name.
toIntboolean <optional>
true Parse to integer.
Returns:
number | string | undefined .The style value.
-
<static> hasWebGLSupport()
-
Returns true if the current browser supports WebGL.
Requires:
- module:modules/boost
Returns:
boolean .trueif the browser supports WebGL. -
<static> i18nFormat(formatString, context, chart)
-
i18n formatting function. Extends Highcharts.format() functionality by also handling arrays and plural conditionals. Arrays can be indexed as follows:
-
Format: 'This is the first index: {myArray[0]}. The last: {myArray[-1]}.'
-
Context: { myArray: [0, 1, 2, 3, 4, 5] }
-
Result: 'This is the first index: 0. The last: 5.'
They can also be iterated using the #each() function. This will repeat the contents of the bracket expression for each element. Example:
-
Format: 'List contains: {#each(myArray)cm }'
-
Context: { myArray: [0, 1, 2] }
-
Result: 'List contains: 0cm 1cm 2cm '
The #each() function optionally takes a length parameter. If positive, this parameter specifies the max number of elements to iterate through. If negative, the function will subtract the number from the length of the array. Use this to stop iterating before the array ends. Example:
-
Format: 'List contains: {#each(myArray, -1), }and {myArray[-1]}.'
-
Context: { myArray: [0, 1, 2, 3] }
-
Result: 'List contains: 0, 1, 2, and 3.'
Use the #plural() function to pick a string depending on whether or not a context object is 1. Arguments are #plural(obj, plural, singular). Example:
-
Format: 'Has {numPoints} {#plural(numPoints, points, point}.'
-
Context: { numPoints: 5 }
-
Result: 'Has 5 points.'
Optionally there are additional parameters for dual and none: #plural(obj, plural, singular, dual, none). Example:
-
Format: 'Has {#plural(numPoints, many points, one point, two points, none}.'
-
Context: { numPoints: 2 }
-
Result: 'Has two points.'
The dual or none parameters will take precedence if they are supplied.
Parameters:
Name Type Description formatStringstring The string to format.
contextHighcharts.Dictionary.<*> Context to apply to the format string.
chartHighcharts.Chart A
Chartinstance with a time object and numberFormatter, passed on to format().- Deprecated:
-
- Yes
Requires:
- module:modules/accessibility
Returns:
string .The formatted string.
-
-
<static> isArray(obj)
-
Utility function to check if an item is an array.
Parameters:
Name Type Description obj* The item to check.
Returns:
boolean .True if the argument is an array.
-
<static> isClass(obj)
-
Utility function to check if an Object is a class.
Parameters:
Name Type Description objobject | undefined The item to check.
Returns:
boolean .True if the argument is a class.
-
<static> isDOMElement(obj)
-
Utility function to check if an Object is a HTML Element.
Parameters:
Name Type Description obj* The item to check.
Returns:
boolean .True if the argument is a HTML Element.
-
<static> isNumber(n)
-
Utility function to check if an item is a number and it is finite (not NaN, Infinity or -Infinity).
Parameters:
Name Type Description n* The item to check.
Returns:
boolean .True if the item is a finite number
-
<static> isObject(obj [, strict])
-
Utility function to check if an item is of type object.
Parameters:
Name Type Argument Default Description obj* The item to check.
strictboolean <optional>
false Also checks that the object is not an array.
Returns:
boolean .True if the argument is an object.
-
<static> isString(s)
-
Utility function to check for string type.
Parameters:
Name Type Description s* The item to check.
Returns:
boolean .True if the argument is a string.
-
<static> mapChart( [renderTo], options [, callback])
-
The factory function for creating new map charts. Creates a new MapChart object with different default options than the basic Chart.
Parameters:
Name Type Argument Description renderTostring | Highcharts.HTMLDOMElement <optional>
The DOM element to render to, or its id.
optionsHighcharts.Options The chart options structure as described in the options reference.
callbackHighcharts.ChartCallbackFunction <optional>
A function to execute when the chart object is finished rendering and all external image files (
chart.backgroundImage,chart.plotBackgroundImageetc) are loaded. Defining a chart.events.load handler is equivalent.Requires:
- module:modules/map
Returns:
Highcharts.MapChart .The chart object.
-
<static> merge
(extendOrSource [, sources]) -
Utility function to deep merge two or more objects and return a third object. If the first argument is true, the contents of the second object is copied into the first object. The merge function can also be used with a single object argument to create a deep copy of an object.
Parameters:
Name Type Argument Description extendOrSourcetrue | T Whether to extend the left-side object, or the first object to merge as a deep copy.
sourcesArray.<(object|undefined)> <optional>
<repeatable>
Object(s) to merge into the previous one.
Returns:
T .The merged object. If the first argument is true, the return is the same as the second argument.
-
<static> navigator( [renderTo], options)
-
Factory function for standalone navigator.
Parameters:
Name Type Argument Description renderTostring | Highcharts.HTMLDOMElement <optional>
The DOM element to render to, or its id.
optionsStandaloneNavigatorOptions The standalone navigator options with chart-like structure.
Returns the navigator object.
-
<static> normalizeTickInterval(interval [, multiples] [, magnitude] [, allowDecimals] [, hasTickAmount])
-
Take an interval and normalize it to multiples of round numbers.
Parameters:
Name Type Argument Description intervalnumber The raw, un-rounded interval.
multiplesArray.<*> <optional>
Allowed multiples.
magnitudenumber <optional>
The magnitude of the number.
allowDecimalsboolean <optional>
Whether to allow decimals.
hasTickAmountboolean <optional>
If it has tickAmount, avoid landing on tick intervals lower than original.
- Deprecated:
-
- Yes
- To Do:
-
- Move this function to the Axis prototype. It is here only for historical reasons.
Returns:
number .The normalized interval.
-
<static> objectEach
(obj, fn [, ctx]) -
Iterate over object key pairs in an object.
Parameters:
Name Type Argument Description obj* The object to iterate over.
fnHighcharts.ObjectEachCallbackFunction.<T> The iterator callback. It passes three arguments: * value - The property value. * key - The property key. * obj - The object that objectEach is being applied to.
ctxT <optional>
The context.
-
<static> offset(el)
-
Get the element's offset position, corrected for
overflow: auto.Parameters:
Name Type Description elglobal.Element The DOM element.
Returns:
Highcharts.OffsetObject .An object containing
leftandtopproperties for the position in the page. -
<static> pad(number [, length] [, padder])
-
Left-pad a string to a given length by adding a character repetitively.
Parameters:
Name Type Argument Default Description numbernumber The input string or number.
lengthnumber <optional>
The desired string length.
padderstring <optional>
0 The character to pad with.
Returns:
string .The padded string.
-
<static> pick
(items) -
Return the first value that is not null or undefined.
Parameters:
Name Type Argument Description itemsArray.<(T|null|undefined)> <repeatable>
Variable number of arguments to inspect.
Returns:
T .The value of the first argument that is not null or undefined.
-
<static> pushUnique(array, item)
-
Adds an item to an array, if it is not present in the array.
Parameters:
Name Type Description arrayArray.<unknown> The array to add the item to.
itemunknown The item to add.
Returns:
boolean .Returns true, if the item was not present and has been added.
-
<static> relativeLength(value, base [, offset])
-
Return a length based on either the integer value, or a percentage of a base.
Parameters:
Name Type Argument Default Description valueHighcharts.RelativeSize A percentage string or a number.
basenumber The full length that represents 100%.
offsetnumber <optional>
0 A pixel offset to apply for percentage values. Used internally in axis positioning.
Returns:
number .The computed length.
-
<static> removeEvent
(el [, type] [, fn]) -
Remove an event that was added with Highcharts#addEvent.
Parameters:
Name Type Argument Description elHighcharts.Class.<T> | T The element to remove events on.
typestring <optional>
The type of events to remove. If undefined, all events are removed from the element.
fnHighcharts.EventCallbackFunction.<T> <optional>
The specific callback to remove. If undefined, all events that match the element and optionally the type are removed.
Returns:
-
<static> replaceNested(text, replacements)
-
Replaces text in a string with a given replacement in a loop to catch nested matches after previous replacements.
Parameters:
Name Type Argument Description textstring Text to search and modify.
replacementsArray.<(RegExp|string)> <repeatable>
One or multiple tuples with search pattern (
[0]: (string|RegExp)) and replacement ([1]: string) for matching text.Returns:
string .Text with replacements.
-
<static> setAnimation(animation, chart)
-
Set the global animation to either a given value, or fall back to the given chart's animation option.
Parameters:
Name Type Description animationboolean | Partial.<Highcharts.AnimationOptionsObject> | undefined The animation object.
chartHighcharts.Chart The chart instance.
- To Do:
-
- This function always relates to a chart, and sets a property on the renderer, so it should be moved to the SVGRenderer.
-
<static> setOptions(options)
-
Merge the default options with custom options and return the new options structure. Commonly used for defining reusable templates.
Parameters:
Name Type Description optionsHighcharts.Options The new custom chart options.
Returns:
Highcharts.Options .Updated options.
Try it
-
<static> splat(obj)
-
Check if an element is an array, and if not, make it into an array.
Parameters:
Name Type Description obj* The object to splat.
Returns:
Array .The produced or original array.
-
<static> splitPath(path)
-
Utility for reading SVG paths directly.
Parameters:
Name Type Description pathstring | Array.<(string|number)> Path to split.
Requires:
- module:modules/map
Returns:
Highcharts.SVGPathArray .Splitted SVG path
-
<static> stableSort(arr, sortFunction)
-
Sort an object array and keep the order of equal items. The ECMAScript standard does not specify the behaviour when items are equal.
Parameters:
Name Type Description arrArray.<*> The array to sort.
sortFunctionfunction The function to sort it with, like with regular Array.prototype.sort.
-
<static> stockChart( [renderTo], options [, callback])
-
Factory function for creating new stock charts. Creates a new StockChart object with different default options than the basic Chart.
Parameters:
Name Type Argument Description renderTostring | Highcharts.HTMLDOMElement <optional>
The DOM element to render to, or its id.
optionsHighcharts.Options The chart options structure as described in the options reference.
callbackHighcharts.ChartCallbackFunction <optional>
A function to execute when the chart object is finished rendering and all external image files (
chart.backgroundImage,chart.plotBackgroundImageetc) are loaded. Defining a chart.events.load handler is equivalent.Returns:
Highcharts.StockChart .The chart object.
Example
let chart = Highcharts.stockChart('container', { series: [{ data: [1, 2, 3, 4, 5, 6, 7, 8, 9], pointInterval: 24 * 60 * 60 * 1000 }] }); -
<static> stop(el [, prop])
-
Stop running animation.
Parameters:
Name Type Argument Description elHighcharts.SVGElement The SVGElement to stop animation on.
propstring <optional>
The property to stop animating. If given, the stop method will stop a single property from animating, while others continue.
- To Do:
-
- A possible extension to this would be to stop a single property, when we want to continue animating others. Then assign the prop to the timer in the Fx.run method, and check for the prop here. This would be an improvement in all cases where we stop the animation from .attr. Instead of stopping everything, we can just stop the actual attributes we're setting.
Returns:
-
<static> syncTimeout(fn, delay [, context])
-
Set a timeout if the delay is given, otherwise perform the function synchronously.
Parameters:
Name Type Argument Description fnfunction The function callback.
delaynumber Delay in milliseconds.
context* <optional>
An optional context to send to the function callback.
Returns:
number .An identifier for the timeout that can later be cleared with Highcharts.clearTimeout. Returns -1 if there is no timeout.
-
<static> uniqueKey()
-
Get a unique key for using in internal element id's and pointers. The key is composed of a random hash specific to this Highcharts instance, and a counter.
Returns:
string .A unique key.
Example
let id = uniqueKey(); // => 'highcharts-x45f6hp-0'
-
<static> useSerialIds( [mode])
-
Activates a serial mode for element IDs provided by Highcharts.uniqueKey. This mode can be used in automated tests, where a simple comparison of two rendered SVG graphics is needed.
Note: This is only for testing purposes and will break functionality in webpages with multiple charts.
Parameters:
Name Type Argument Description modeboolean <optional>
Changes the state of serial mode.
Returns:
boolean | undefined .State of the serial mode.
Example
if ( process && process.env.NODE_ENV === 'development' ) { Highcharts.useSerialIds(true); } -
<static> wrap(obj, method, func)
-
Wrap a method with extended functionality, preserving the original function.
Parameters:
Name Type Description obj* The context object that the method belongs to. In real cases, this is often a prototype.
methodstring The name of the method to extend.
funcHighcharts.WrapProceedFunction A wrapper function callback. This function is called with the same arguments as the original function, except that the original function is unshifted and passed as the first argument.
Type Definitions
-
AlignValue
-
The horizontal alignment of an element.
Type:
- "center" | "left" | "right"
-
AnimationStepCallbackFunction(this)
-
Creates a frame for the animated SVG element.
Parameters:
Name Type Description thisHighcharts.SVGElement The SVG element to animate.
Returns:
-
AnnotationControlPointPositionerFunction(this, target)
-
Callback to modify annotation's positioner controls.
Parameters:
Name Type Description thisHighcharts.AnnotationControlPoint targetHighcharts.AnnotationControllable Returns:
-
AnnotationDraggableValue
-
Possible directions for draggable annotations. An empty string (
'') makes the annotation undraggable.Type:
- '' | 'x' | 'xy' | 'y'
-
AnnotationMockPointOptions
-
Annotation point, which can be:
- a string: the ID of an existing series point,
- an object: mock point options,
- a function: returning either mock point options object or a point.
Type:
- string | Highcharts.AnnotationMockPointOptionsObject | Highcharts.AnnotationMockPointFunction
-
AxisCrosshairOptions
-
Options for crosshairs on axes.
Type:
- Highcharts.XAxisCrosshairOptions | Highcharts.YAxisCrosshairOptions
-
AxisEventCallbackFunction(this)
-
Parameters:
Name Type Description thisHighcharts.Axis -
AxisExtremesTriggerValue
-
Type:
- "navigator" | "pan" | "rangeSelectorButton" | "rangeSelectorInput" | "scrollbar" | "traverseUpButton" | "zoom"
-
AxisLabelsFormatterCallbackFunction(this, ctx)
-
Parameters:
Name Type Description thisHighcharts.AxisLabelsFormatterContextObject ctxHighcharts.AxisLabelsFormatterContextObject Returns:
-
AxisOptions
-
Options for axes.
Type:
- Highcharts.XAxisOptions | Highcharts.YAxisOptions | Highcharts.ZAxisOptions
-
AxisPointBreakEventCallbackFunction(this, evt)
-
Parameters:
Name Type Description thisHighcharts.Axis evtHighcharts.AxisPointBreakEventObject -
AxisSetExtremesEventCallbackFunction(this, evt)
-
Parameters:
Name Type Description thisHighcharts.Axis evtHighcharts.AxisSetExtremesEventObject -
AxisTickPositionerCallbackFunction(this)
-
Parameters:
Name Type Description thisHighcharts.Axis Returns:
-
AxisTitleAlignValue
-
Type:
- "high" | "low" | "middle"
-
AxisTitleOptions
-
Type:
- Highcharts.XAxisTitleOptions | Highcharts.YAxisTitleOptions | Highcharts.ZAxisTitleOptions
-
AxisTypeValue
-
Type:
- "linear" | "logarithmic" | "datetime" | "category" | "treegrid"
-
BreadcrumbsClickCallbackFunction(event, options, e)
-
Callback function to react on button clicks.
Parameters:
Name Type Description eventHighcharts.Event Event.
optionsHighcharts.BreadcrumbOptions Breadcrumb options.
eglobal.Event Event arguments.
-
BreadcrumbsFormatterCallbackFunction(options)
-
Callback function to format the breadcrumb text from scratch.
Parameters:
Name Type Description optionsHighcharts.BreadcrumbOptions Breadcrumb options.
Returns:
string .Formatted text or false
-
ButtonRelativeToValue
-
Type:
- "plotBox" | "spacingBox"
-
ChartAddSeriesCallbackFunction(this, event)
-
Gets fired when a series is added to the chart after load time, using the
addSeriesmethod. Returningfalseprevents the series from being added.Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventHighcharts.ChartAddSeriesEventObject The event that occurred.
-
ChartCallbackFunction(chart)
-
Callback for chart constructors.
Parameters:
Name Type Description chartHighcharts.Chart Created chart.
-
ChartClickCallbackFunction(this, event)
-
Gets fired when clicking on the plot background.
Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventHighcharts.PointerEventObject The event that occurred.
-
ChartLoadCallbackFunction(this, event)
-
Gets fired when the chart is finished loading.
Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventglobal.Event The event that occurred.
-
ChartRedrawCallbackFunction(this, event)
-
Fires when the chart is redrawn, either after a call to
chart.redraw()or after an axis, series or point is modified with theredrawoption set totrue.Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventglobal.Event The event that occurred.
-
ChartRenderCallbackFunction(this, event)
-
Gets fired after initial load of the chart (directly after the
loadevent), and after each redraw (directly after theredrawevent).Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventglobal.Event The event that occurred.
-
ChartSelectionCallbackFunction(this, event)
-
Gets fired when an area of the chart has been selected. The default action for the selection event is to zoom the chart to the selected area. It can be prevented by calling
event.preventDefault()or return false.Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventHighcharts.SelectEventObject Event informations
Returns:
boolean | undefined .Return false to prevent the default action, usually zoom.
-
ClipRectElement
-
A clipping rectangle that can be applied to one or more Highcharts.SVGElement instances. It is instantiated with the Highcharts.SVGRenderer#clipRect function and applied with the Highcharts.SVGElement#clip function.
Type:
Example
let circle = renderer.circle(100, 100, 100) .attr({ fill: 'red' }) .add(); let clipRect = renderer.clipRect(100, 100, 100, 100); // Leave only the lower right quarter visible circle.clip(clipRect); -
ColorAxisTypeValue
-
Color axis types
Type:
- "linear" | "logarithmic"
-
ColorString
-
A valid color to be parsed and handled by Highcharts.
Type:
- string
-
ColorType
-
A valid color type than can be parsed and handled by Highcharts. It can be a color string, a gradient object, or a pattern object.
Type:
-
CursorValue
-
All possible cursor styles.
Type:
- 'alias' | 'all-scroll' | 'auto' | 'cell' | 'col-resize' | 'context-menu' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'no-drop' | 'none' | 'not-allowed' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'vertical-text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out'
-
DOMElementType
-
Type:
-
DashStyleValue
-
All possible dash styles.
Type:
- 'Dash' | 'DashDot' | 'Dot' | 'LongDash' | 'LongDashDot' | 'LongDashDotDot' | 'ShortDash' | 'ShortDashDot' | 'ShortDashDotDot' | 'ShortDot' | 'Solid'
-
DataBeforeParseCallbackFunction(csv)
-
Callback function to modify the CSV before parsing it by the data module.
Parameters:
Name Type Description csvstring The CSV to modify.
Returns:
string .The CSV to parse.
-
DataCompleteCallbackFunction(chartOptions)
-
Callback function that gets called after parsing data.
Parameters:
Name Type Description chartOptionsHighcharts.Options The chart options that were used.
-
DataDateFormatCallbackFunction(match)
-
Callback function that returns the corresponding Date object to a match.
Parameters:
Name Type Description matchArray.<number> Returns:
-
DataGroupingAnchor
-
The position of the point inside the group.
Type:
- "start" | "middle" | "end"
-
DataGroupingAnchorExtremes
-
The position of the first or last point in the series inside the group.
Type:
- "start" | "middle" | "end" | "firstPoint" | "lastPoint"
-
DataGroupingApproximationValue
-
Type:
- "average" | "averages" | "close" | "high" | "hlc" | "low" | "ohlc" | "open" | "range" | "sum"
-
DataLabelsFormatterCallbackFunction(this, options)
-
Callback JavaScript function to format the data label as a string. Note that if a
formatis defined, the format takes precedence and the formatter is ignored.Parameters:
Name Type Description thisHighcharts.Point Data label context to format
optionsHighcharts.DataLabelsOptions API options of the data label
Returns:
number | string | null | undefined .Formatted data label text
-
DataLabelsOverflowValue
-
Values for handling data labels that flow outside the plot area.
Type:
- "allow" | "justify"
-
DataParseDateCallbackFunction(dateValue)
-
Callback function to parse string representations of dates into JavaScript timestamps (milliseconds since 1.1.1970).
Parameters:
Name Type Description dateValuestring Returns:
number .Timestamp (milliseconds since 1.1.1970) as integer for Date class.
-
DataParsedCallbackFunction(columns)
-
Callback function to access the parsed columns, the two-dimensional input data array directly, before they are interpreted into series data and categories.
Parameters:
Name Type Description columnsArray.<Array.<*>> The parsed columns by the data module.
Returns:
boolean | undefined .Return
falseto stop completion, or callthis.complete()to continue async. -
DataTableColumn
-
A typed array.
Type:
- Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array
-
DataTableColumnCollection
-
A collection of data table columns defined by a object where the key is the column name and the value is an array of the column values.
Type:
- Record.<string, Highcharts.DataTableColumn>
-
DataValueType
-
Possible types for a data item in a column or row.
Type:
- number | string | null
-
DrilldownCallbackFunction(this, e)
-
Gets fired when a drilldown point is clicked, before the new series is added. Note that when clicking a category label to trigger multiple series drilldown, one
drilldownevent is triggered per point in the category.Parameters:
Name Type Description thisHighcharts.Chart The chart where the event occurs.
eHighcharts.DrilldownEventObject The drilldown event.
-
DrillupAllCallbackFunction(this, e)
-
This gets fired after all the series have been drilled up. This is especially useful in a chart with multiple drilldown series.
Parameters:
Name Type Description thisHighcharts.Chart The chart where the event occurs.
eHighcharts.DrillupAllEventObject The final drillup event.
-
DrillupCallbackFunction(this, e)
-
Gets fired when drilling up from a drilldown series.
Parameters:
Name Type Description thisHighcharts.Chart The chart where the event occurs.
eHighcharts.DrillupEventObject The drillup event.
-
EventCallbackFunction
(this [, eventArguments]) -
The function callback to execute when the event is fired. The
thiscontext contains the instance, that fired the event.Parameters:
Name Type Argument Description thisT eventArgumentsHighcharts.Dictionary.<*> | Event <optional>
Event arguments.
Returns:
-
ExportDataCallbackFunction(this, event)
-
Function callback to execute while data rows are processed for exporting. This allows the modification of data rows before processed into the final format.
Parameters:
Name Type Description thisHighcharts.Chart Chart context where the event occurred.
eventHighcharts.ExportDataEventObject Event object with data rows that can be modified.
-
ExportingAfterPrintCallbackFunction(this, event)
-
Gets fired after a chart is printed through the context menu item or the Chart.print method.
Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventglobal.Event The event that occurred.
-
ExportingBeforePrintCallbackFunction(this, event)
-
Gets fired before a chart is printed through the context menu item or the Chart.print method.
Parameters:
Name Type Description thisHighcharts.Chart The chart on which the event occurred.
eventglobal.Event The event that occurred.
-
ExportingErrorCallbackFunction(options, err)
-
Function to call if the offline-exporting module fails to export a chart on the client side.
Parameters:
Name Type Description optionsHighcharts.ExportingOptions The exporting options.
errglobal.Error The error from the module.
-
ExportingMimeTypeValue
-
Possible MIME types for exporting.
Type:
- "image/png" | "image/jpeg" | "application/pdf" | "image/svg+xml"
-
FormatterCallbackFunction
(this) -
Formats data as a string. Usually the data is accessible through the
thiskeyword.Parameters:
Name Type Description thisT Context to format
Returns:
string .Formatted text
-
FullScreenfullscreenCloseCallbackFunction(chart, event)
-
Gets fired when closing the fullscreen.
Parameters:
Name Type Description chartHighcharts.Chart The chart on which the event occurred.
eventglobal.Event The event that occurred.
-
FullScreenfullscreenOpenCallbackFunction(chart, event)
-
Gets fired when opening the fullscreen.
Parameters:
Name Type Description chartHighcharts.Chart The chart on which the event occurred.
eventglobal.Event The event that occurred.
-
HTMLAttributes
-
An object of key-value pairs for HTML attributes.
Type:
- Highcharts.Dictionary.<(boolean|number|string|function())>
-
HTMLDOMElement
-
An HTML DOM element. The type is a reference to the regular HTMLElement in the global scope.
Type:
- global.HTMLElement
-
LegendItemClickCallbackFunction(this, event)
-
Gets fired when the legend item is clicked. The default action is to toggle the visibility of the series or point. This can be prevented by returning
falseor callingevent.preventDefault().Parameters:
Name Type Description thisHighcharts.Legend The legend on which the event occurred.
eventHighcharts.LegendItemClickEventObject The event that occurred.
-
LonLatArray
-
An array of longitude, latitude.
Type:
- Array.<number>
-
MapDataType
-
An array of GeoJSON or TopoJSON objects or strings used as map data for series.
Type:
- Array.<*> | Highcharts.GeoJSON | Highcharts.TopoJSON | string
-
MapViewInsetOptionsRelativeToValue
-
Possible values for the specific
relativeTooption.Type:
- "mapBoundingBox" | "plotBox"
-
MapViewPaddingType
-
The padding of the map view. Can be either a number of pixels, a percentage string, or an array of either. If an array is given, it sets the top, right, bottom, left paddings respectively.
Type:
- number | string | Array.<(number|string)>
-
MarkerClusterDrillCallbackFunction(this, event)
-
Function callback when a cluster is clicked.
Parameters:
Name Type Description thisHighcharts.Point The point where the event occurred.
eventHighcharts.PointClickEventObject Event arguments.
-
NetworkgraphAfterSimulationCallbackFunction(this, event)
-
Callback that fires after the end of Networkgraph series simulation when the layout is stable.
Parameters:
Name Type Description thisHighcharts.Series The series where the event occurred.
eventglobal.Event The event that occurred.
-
NumberFormatterCallbackFunction(number, decimals [, decimalPoint] [, thousandsSep])
-
Format a number and return a string based on input settings.
Parameters:
Name Type Argument Description numbernumber The input number to format.
decimalsnumber The amount of decimals. A value of -1 preserves the amount in the input number.
decimalPointstring <optional>
The decimal point, defaults to the one given in the lang options, or a dot.
thousandsSepstring <optional>
The thousands separator, defaults to the one given in the lang options, or a space character.
Returns:
string .The formatted number.
-
ObjectEachCallbackFunction
(this, value, key, obj) -
The iterator callback.
Parameters:
Name Type Description thisT The context.
value* The property value.
keystring The property key.
obj* The object that objectEach is being applied to.
-
OrganizationHangingIndentTranslationValue
-
Indent translation value for the child nodes in an organization chart, when parent has
hanginglayout. Option can shrink nodes (for tight charts), translate children to the left, or render nodes directly under the parent.Type:
- "inherit" | "cumulative" | "shrink"
-
PointClickCallbackFunction(this, event)
-
Function callback when a series point is clicked. Return false to cancel the action.
Parameters:
Name Type Description thisHighcharts.Point The point where the event occurred.
eventHighcharts.PointClickEventObject Event arguments.
-
PointDragCallbackFunction(this, event)
-
Function callback to execute while series points are dragged. Return false to stop the default drag action.
Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventHighcharts.PointDragEventObject Event arguments.
-
PointDragStartCallbackFunction(this, event)
-
Function callback to execute when a series point is dragged.
Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventHighcharts.PointDragStartEventObject Event arguments.
-
PointDropCallbackFunction(this, event)
-
Function callback to execute when series points are dropped.
Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventHighcharts.PointDropEventObject Event arguments.
-
PointLegendItemClickCallbackFunction(this, event)
-
Gets fired when the legend item belonging to a point is clicked. The default action is to toggle the visibility of the point. This can be prevented by returning
falseor callingevent.preventDefault().Note: This option is deprecated in favor of Highcharts.LegendItemClickCallbackFunction.
Parameters:
Name Type Description thisHighcharts.Point The point on which the event occurred.
eventHighcharts.PointLegendItemClickEventObject The event that occurred.
- Deprecated:
-
- 11.4.4
-
PointMouseOutCallbackFunction(this, event)
-
Gets fired when the mouse leaves the area close to the point.
Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventglobal.PointerEvent Event that occurred.
-
PointMouseOverCallbackFunction(this, event)
-
Gets fired when the mouse enters the area close to the point.
Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventglobal.Event Event that occurred.
-
PointOptionsType
-
Possible option types for a data point. Use
nullto indicate a gap.Type:
- number | string | Highcharts.PointOptionsObject | Array.<(number|string|null)> | null
-
PointRemoveCallbackFunction(this, event)
-
Gets fired when the point is removed using the
.remove()method.Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventglobal.Event Event that occurred.
-
PointSelectCallbackFunction(this, event)
-
Gets fired when the point is selected either programmatically or following a click on the point.
Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventHighcharts.PointInteractionEventObject Event that occurred.
-
PointStateValue
-
Possible key values for the point state options.
Type:
- "hover" | "inactive" | "normal" | "select"
-
PointUnselectCallbackFunction(this, event)
-
Fires when the point is unselected either programmatically or following a click on the point.
Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventHighcharts.PointInteractionEventObject Event that occurred.
-
PointUpdateCallbackFunction(this, event)
-
Gets fired when the point is updated programmatically through the
.update()method.Parameters:
Name Type Description thisHighcharts.Point Point where the event occurred.
eventHighcharts.PointUpdateEventObject Event that occurred.
-
ProjectionRotationOption
-
Rotation of the projection in terms of degrees
[lambda, phi, gamma]. 1st number is mandatory, while 2nd and 3rd are optional.Type:
- "TypeScript: [number]|[number,number]|[number,number,number]"
-
RelativeSize
-
If a number is given, it defines the pixel length. If a percentage string is given, like for example
'50%', the setting defines a length relative to a base size, for example the size of a container.Type:
- number | string
-
SVGDOMElement
-
An SVG DOM element. The type is a reference to the regular SVGElement in the global scope.
Type:
- globals.GlobalSVGElement
-
SVGPathArray
-
Array of path commands, that will go into the
dattribute of an SVG element.Type:
- Array.<(Array.<Highcharts.SVGPathCommand>|Array.<Highcharts.SVGPathCommand, number>|Array.<Highcharts.SVGPathCommand, number, number>|Array.<Highcharts.SVGPathCommand, number, number, number, number>|Array.<Highcharts.SVGPathCommand, number, number, number, number, number, number>|Array.<Highcharts.SVGPathCommand, number, number, number, number, number, number, number>)>
-
SVGPathCommand
-
Possible path commands in an SVG path array. Valid values are
A,C,H,L,M,Q,S,T,V,Z.Type:
- string
-
SeriesAfterAnimateCallbackFunction(this, event)
-
Function callback when a series has been animated.
Parameters:
Name Type Description thisHighcharts.Series The series where the event occurred.
eventHighcharts.SeriesAfterAnimateEventObject Event arguments.
-
SeriesCheckboxClickCallbackFunction(this, event)
-
Function callback when the checkbox next to the series' name in the legend is clicked.
Parameters:
Name Type Description thisHighcharts.Series The series where the event occurred.
eventHighcharts.SeriesCheckboxClickEventObject Event arguments.
-
SeriesClickCallbackFunction(this, event)
-
Function callback when a series is clicked. Return false to cancel toogle actions.
Parameters:
Name Type Description thisHighcharts.Series The series where the event occurred.
eventHighcharts.SeriesClickEventObject Event arguments.
-
SeriesHideCallbackFunction(this, event)
-
Gets fired when the series is hidden after chart generation time, either by clicking the legend item or by calling
.hide().Parameters:
Name Type Description thisHighcharts.Series The series where the event occurred.
eventglobal.Event The event that occurred.
-
SeriesLegendItemClickCallbackFunction(this, event)
-
Gets fired when the legend item belonging to a series is clicked. The default action is to toggle the visibility of the series. This can be prevented by returning
falseor callingevent.preventDefault().Note: This option is deprecated in favor of Highcharts.LegendItemClickCallbackFunction.
Parameters:
Name Type Description thisHighcharts.Series The series where the event occurred.
eventHighcharts.SeriesLegendItemClickEventObject The event that occurred.
- Deprecated:
-
- 11.4.4
-
SeriesLegendItemClickCallbackFunction(this, event)
-
Gets fired when the legend item belonging to the series is clicked. The default action is to toggle the visibility of the series. This can be prevented by returning
falseor callingevent.preventDefault().Note: This option is deprecated in favor of Highcharts.LegendItemClickCallbackFunction.
Parameters:
Name Type Description thisHighcharts.Series The series where the event occurred.
eventHighcharts.SeriesLegendItemClickEventObject The event that occurred.
- Deprecated:
-
- 11.4.4
-
SeriesLinecapValue
-
The SVG value used for the
stroke-linecapandstroke-linejoinof a line graph.Type:
- "butt" | "round" | "square" | string
-
SeriesMouseOutCallbackFunction(this, event)
-
Gets fired when the mouse leaves the graph.
Parameters:
Name Type Description thisHighcharts.Series Series where the event occurred.
eventglobal.PointerEvent Event that occurred.
-
SeriesMouseOverCallbackFunction(this, event)
-
Gets fired when the mouse enters the graph.
Parameters:
Name Type Description thisHighcharts.Series Series where the event occurred.
eventglobal.PointerEvent Event that occurred.
-
SeriesOptionsType
-
This is a placeholder type of the possible series options for Highcharts, Highcharts Stock, Highmaps, and Gantt.
In TypeScript is this dynamically generated to reference all possible types of series options.
Type:
- Highcharts.SeriesOptions | Highcharts.Dictionary.<*>
-
SeriesOrganizationNodesLayoutValue
-
Layout value for the child nodes in an organization chart. If
hanging, this node's children will hang below their parent, allowing a tighter packing of nodes in the diagram.Type:
- "normal" | "hanging"
-
SeriesSankeyDataLabelsFormatterCallbackFunction(this)
-
Formatter callback function.
Parameters:
Name Type Description thisHighcharts.Point Data label context to format
Returns:
string | undefined .Formatted data label text
-
SeriesShowCallbackFunction(this, event)
-
Gets fired when the series is shown after chart generation time, either by clicking the legend item or by calling
.show().Parameters:
Name Type Description thisHighcharts.Series Series where the event occurred.
eventglobal.Event Event that occurred.
-
SeriesStateValue
-
Possible key values for the series state options.
Type:
- "hover" | "inactive" | "normal" | "select"
-
SonificationChartEventCallback(e)
-
Callback function for sonification events on chart.
Parameters:
Name Type Description eHighcharts.SonificationChartEventCallbackContext Sonification chart event context
-
SonificationSeriesEventCallback(e)
-
Callback function for sonification events on series.
Parameters:
Name Type Description eHighcharts.SonificationSeriesEventCallbackContext Sonification series event context
-
SonificationSynthPreset
-
Type:
- "piano" | "plucked" | "flute" | "lead" | "vibraphone" | "saxophone" | "trumpet" | "sawsynth" | "basic1" | "basic2" | "chord" | "wobble" | "sine" | "sineGlide" | "triangle" | "sawtooth" | "square" | "chop" | "shaker" | "step" | "kick" | "shortnote" | "noise" | "filteredNoise" | "wind"
-
SonificationTimelineFilterCallback(e, ix, arr)
-
Filter callback for filtering timeline events on a SonificationTimeline.
Parameters:
Name Type Description eHighcharts.SonificationTimelineEvent TimelineEvent being filtered
ixnumber Index of TimelineEvent in current event array
arrArray.<Highcharts.SonificationTimelineEvent> The current event array
Returns:
boolean .The function should return true if the TimelineEvent should be included, false otherwise.
-
SymbolKeyValue
-
Can be one of
arc,callout,circle,diamond,square,triangle, andtriangle-down. Symbols are used internally for point markers, button and label borders and backgrounds, or custom shapes. Extendable by adding to Highcharts.SVGRenderer#symbols.Type:
- "arc" | "callout" | "circle" | "diamond" | "square" | "triangle" | "triangle-down"
-
SynthEnvelope
-
Type:
- Array.<Highcharts.SynthEnvelopePoint>
-
SynthEnvelopePoint
-
Type:
- Highcharts.Record.<("t"|"vol"), number>
-
SynthPatchOscillatorType
-
Type:
- "sine" | "square" | "sawtooth" | "triangle" | "whitenoise" | "pulse"
-
TooltipFormatterCallbackFunction(this, tooltip)
-
Callback function to format the text of the tooltip from scratch.
In case of single or shared tooltips, a string should be returned. In case of split tooltips, it should return an array where the first item is the header, and subsequent items are mapped to the points. Return
falseto disable tooltip for a specific point on series.Parameters:
Name Type Description thisHighcharts.Point The formatter's context is the hovered
Pointinstance. In case of shared or split tooltips, all points are available inthis.points.tooltipHighcharts.Tooltip The tooltip instance
Returns:
false | string | Array.<(string|null|undefined)> | null | undefined .Formatted text or false
-
TooltipPositionerCallbackFunction(this, labelWidth, labelHeight, point)
-
A callback function to place the tooltip in a specific position.
Parameters:
Name Type Description thisHighcharts.Tooltip Tooltip context of the callback.
labelWidthnumber Width of the tooltip.
labelHeightnumber Height of the tooltip.
pointHighcharts.TooltipPositionerPointObject Point information for positioning a tooltip.
Returns:
Highcharts.PositionObject .New position for the tooltip.
-
TooltipShapeValue
-
Type:
- "callout" | "circle" | "rect"
-
TopoJSON
-
A TopoJSON object, see description on the project's GitHub page.
Type:
- Object
-
VerticalAlignValue
-
The vertical alignment of an element.
Type:
- "bottom" | "middle" | "top"
-
WrapProceedFunction( [arg1] [, arg2] [, arg3])
-
Proceed function to call original (wrapped) function.
Parameters:
Name Type Argument Description arg1* <optional>
Optional argument. Without any arguments defaults to first argument of the wrapping function.
arg2* <optional>
Optional argument. Without any arguments defaults to second argument of the wrapping function.
arg3* <optional>
Optional argument. Without any arguments defaults to third argument of the wrapping function.
Returns:
* .Return value of the original function.
-
XAxisCrosshairLabelFormatterCallbackFunction(this, value)
-
Formatter function for the text of a crosshair label.
Parameters:
Name Type Description thisHighcharts.Axis Axis context
valuenumber Y value of the data point
Returns: