Type class
An axis with a numeric scale.
Click here for more info
Data item
ValueAxis uses data items of type IValueAxisDataItem.
Sources
ValueAxis can be used (imported) via one of the following packages.
// Import ValueAxis
import * as am5xy from "@amcharts/amcharts5/xy";
// Create ValueAxis
am5xy.ValueAxis.new(root, {
// ... config if applicable
});
<!-- Load ValueAxis -->
<script src="xy.js"></script>
<script>
// Create ValueAxis
am5xy.ValueAxis.new(root, {
// ... config if applicable
});
</script>
Inheritance
ValueAxis extends Axis.
ValueAxis is extended by DateAxis, DurationAxis.
Settings
Set these settings on a ValueAxis object using its set() and setAll() methods.
Read about settings concept.
|
active # |
Type Inherited from Applies the element's |
|---|---|
|
animations # |
Type Inherited from Animations the element plays on its own, described as data - so they can be set from a JSON config and saved with it. Each one animates a setting of the element (or, with sprite.set("animations", [
{ key: "rotation", to: 360, duration: 4000, loops: 0 },
{ key: "scale", from: 1, to: 1.3, duration: 800, loops: 0, yoyo: true, easing: "sine" }
]);
@since 5.20.8 |
|
appearDelay # |
Type Default Inherited from Milliseconds to wait before the @since 5.21.0 |
|
appearDuration # |
Type Inherited from Duration of the @since 5.21.0 |
|
ariaChecked # |
Type Inherited from
This setting is ignored unless
|
|
ariaControls # |
Type Inherited from
|
|
ariaCurrent # |
Type Inherited from
Click here for more info |
|
ariaExpanded # |
Type Inherited from
Click here for more info |
|
ariaHidden # |
Type Inherited from
|
|
ariaLabel # |
Type Inherited from Label for the element to use for screen readers. Click here for more info |
|
ariaLive # |
Type Inherited from
|
|
ariaOrientation # |
Type Inherited from
|
|
ariaSelected # |
Type Inherited from
Click here for more info |
|
ariaValueMax # |
Type Inherited from
|
|
ariaValueMin # |
Type Inherited from
|
|
ariaValueNow # |
Type Inherited from
|
|
ariaValueText # |
Type Inherited from
|
|
autoAppear # |
Type Default Inherited from Plays the element's reveal animation, as Elements made from a template play as each one is made. An element that starts hidden ( This is how a JSON config gets the opening animation, as a config cannot call chart.setAll({ autoAppear: true, appearDuration: 1000, appearDelay: 100 });
series.setAll({ autoAppear: true, appearDuration: 1000 });
chart.setAll({ autoAppear: true, appearDuration: 1000, appearDelay: 100 });
series.setAll({ autoAppear: true, appearDuration: 1000 });
Click here for more info |
|
autoZoom # |
Type Default Rescales the axis to fit the values in view as the chart zooms along the other axis. Works only when that axis is not a plain @since 5.2.20 |
|
background # |
Type Inherited from Element drawn behind the container's content, sized to fill the container. Click here for more info |
|
baseValue # |
Type Default The value columns grow from, splitting "positive" from "negative" values. Its grid line gets the Click here for more info |
|
blur # |
Type Inherited from Blur radius in pixels, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
brightness # |
Type Inherited from Brightness.
Click here for more info |
|
bullet # |
Type Inherited from Function that creates an Click here for more info |
|
calculateTotals # |
Type Calculates totals across the axis's series for each data item in view:
Click here for more info |
|
centerX # |
Type Inherited from The point of the element that is placed at its |
|
centerY # |
Type Inherited from The point of the element that is placed at its |
|
clickAnnounceText # |
Type Inherited from If set, the text will be read out (announced) by a screen reader when focused element is "clicked" (by pressing ENTER or SPACE). @since 5.10.8 |
|
contrast # |
Type Inherited from Contrast.
Click here for more info |
|
crisp # |
Type Default Inherited from Draws the element sharply, with minimal anti-aliasing: its position is rounded to whole pixels, and NOTE: it may not work well on several elements that are meant to fit together exactly. @since 5.3.0 |
|
cursorOverStyle # |
Type Inherited from CSS cursor to show while the pointer is over the element, e.g.
Click here for more info |
|
dateFormatter # |
Type Inherited from A Click here for more info |
|
disabled # |
Type Inherited from Applies the element's |
|
draggable # |
Type Inherited from Lets the user drag the element. Touches that start on it no longer scroll the page. |
|
durationFormatter # |
Type Inherited from A Click here for more info |
|
dx # |
Type Inherited from Horizontal shift in pixels. Can be negative to shift leftward. |
|
dy # |
Type Inherited from Vertical shift in pixels. Can be negative to shift upward. |
|
end # |
Type Default Inherited from End of the visible (zoomed) part of the axis: Click here for more info |
|
exportable # |
Type Inherited from If |
|
extraMax # |
Type Extends the scale above the highest value by this share of the value range: with values from Click here for more info |
|
extraMin # |
Type Extends the scale below the lowest value by this share of the value range: with values from Click here for more info |
|
extraTooltipPrecision # |
Type Extra decimal places for the axis tooltip, beyond those of the labels: with labels like Click here for more info |
|
fillRule # |
Type Function that decides which axis fills show; it is called for each grid step. The default fills every other step. Click here for more info |
|
fixAxisSize # |
Type Default Inherited from Keeps the axis from shrinking as zooming changes the visible labels: it keeps room for the widest label shown so far. |
|
focusable # |
Type Inherited from Can element be focused, i.e. selected using TAB key. Click here for more info |
|
focusableGroup # |
Type Inherited from An identifier by which to group common elements into focusable groups. If set, only the first element in he group will be focusable via TAB key. When it is selected, the rest of the elements in the same group can be selected using arrow keys. It allows users to TAB-through chart elements quickly without the need to TAB into each and every element. It's up to implementer of the charts to provide meaningful Click here for more info |
|
forceHidden # |
Type Inherited from Hides the element whatever its |
|
forceInactive # |
Type Inherited from Makes the element and its children ignore the pointer, even with @since 5.0.21 |
|
height # |
Type Inherited from Height in pixels, or a |
|
hoverOnFocus # |
Type Inherited from Simulate hover on an element when it gains focus, including changing hover appearance and displaying a tooltip if applicable. Click here for more info |
|
html # |
Type Inherited from HTML content of the container. It can hold data placeholders, such as Click here for more info |
|
hue # |
Type Inherited from Rotates the hue of all colors by this many degrees, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
id # |
Type Inherited from A unique ID for looking the element up in |
|
ignoreThemes # |
Type Default Inherited from Ignores themes: no theme rule applies to the element, not even one of the default theme. @since 5.15.6 |
|
interactive # |
Type Inherited from Makes the element respond to the pointer. Adding a pointer event listener to it turns this on. |
|
interactiveChildren # |
Type Default Inherited from Makes every descendant, not just direct children, interactive when the container itself is interactive. |
|
interpolationDuration # |
Type Default Inherited from Duration in milliseconds of the animation from old values to new ones, e.g. when data changes. Click here for more info |
|
interpolationEasing # |
Type Inherited from Easing function of the animation from old values to new ones. Click here for more info |
|
invert # |
Type Inherited from Color inversion, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
isMeasured # |
Type Default Inherited from If |
|
layer # |
Type Inherited from Layer to draw the element on: elements on higher layers show in front of those on lower ones. If not set, the element is on its parent's layer. |
|
layerMargin # |
Type Inherited from Margins in pixels that make the element's layer larger than the chart, or, when negative, smaller. @since @5.2.39 |
|
layout # |
Type Inherited from How children are arranged, e.g. Click here for more info |
|
logarithmic # |
Type Uses a logarithmic scale. It can show only values above zero; see Click here for more info |
|
marginBottom # |
Type Inherited from Bottom margin in pixels. |
|
marginLeft # |
Type Inherited from Left margin in pixels. |
|
marginRight # |
Type Inherited from Right margin in pixels. |
|
marginTop # |
Type Inherited from Top margin in pixels. |
|
mask # |
Type Inherited from An element whose shape clips the container's children. Click here for more info |
|
maskContent # |
Type Inherited from Clips all content that goes outside the container's bounds. |
|
max # |
Type Highest value of the axis scale, instead of the highest series value. The axis may round it to fit its grid, unless Click here for more info |
|
maxDeviation # |
Type Default Inherited from How far past its ends the axis can be zoomed or panned, as a share of the visible range: Click here for more info |
|
maxHeight # |
Type Inherited from Maximum allowed height in pixels. |
|
maxPrecision # |
Type Most decimal places the labels may have. It also limits the grid step:
Click here for more info |
|
maxWidth # |
Type Inherited from Maximum allowed width in pixels. |
|
maxZoomCount # |
Type Inherited from Most cells to show at a time, such as categories on a Click here for more info |
|
maxZoomFactor # |
Type Default Inherited from Roughly how many times the axis can be zoomed in. A |
|
min # |
Type Lowest value of the axis scale, instead of the lowest series value. The axis may round it to fit its grid, unless Click here for more info |
|
minHeight # |
Type Inherited from Minimum allowed height in pixels. |
|
minWidth # |
Type Inherited from Minimum allowed width in pixels. |
|
minZoomCount # |
Type Inherited from Fewest cells to show at a time, such as categories on a Click here for more info |
|
minorAxisFillsEnabled # |
Type Inherited from Creates axis fills for the cells of the minor grid too, not only the main one. The @since 5.14.0 |
|
numberFormat # |
Type Number format for the labels. If not set, the number formatter's default format is used, with as many decimals as the grid step needs. Click here for more info |
|
numberFormatter # |
Type Inherited from A Click here for more info |
|
opacity # |
Type Default Inherited from Opacity, from |
|
paddingBottom # |
Type Inherited from Bottom padding in pixels. |
|
paddingLeft # |
Type Inherited from Left padding in pixels. |
|
paddingRight # |
Type Inherited from Right padding in pixels. |
|
paddingTop # |
Type Inherited from Top padding in pixels. |
|
panX # |
Type Inherited from
Click here for more info |
|
panY # |
Type Inherited from
Click here for more info |
|
position # |
Type Default Inherited from Positioning of the element. |
|
renderer # |
Type Inherited from The renderer that draws the axis line, labels, ticks, grid and fills:
Click here for more info |
|
reverseChildren # |
Type Inherited from Lays out the children in reverse order. @since 5.1.1 |
|
role # |
Type Inherited from Element's role. Click here for more info |
|
rotation # |
Type Default Inherited from Rotation in degrees, clockwise, around the point set by |
|
saturate # |
Type Inherited from Saturation.
Click here for more info |
|
scale # |
Type Default Inherited from Scale, around the point set by |
|
sepia # |
Type Inherited from Sepia tone, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
setStateOnChildren # |
Type Default Inherited from Applies every state set on the container to its children too. Click here for more info |
|
showTooltipOn # |
Type Default Inherited from When the element's tooltip shows:
Click here for more info |
|
snapTooltip # |
Type Default Inherited from Snaps the tooltip to |
|
start # |
Type Default Inherited from Start of the visible (zoomed) part of the axis: Click here for more info |
|
stateAnimationDuration # |
Type Default Inherited from How long, in milliseconds, a switch from one state to another animates.
|
|
stateAnimationEasing # |
Type Default Inherited from Easing of the animated switch from one state to another. |
|
strictMinMax # |
Type Makes the scale start and end exactly at The axis then also stops rescaling to the values in view as the chart zooms. To rescale to the exact values in view, use Click here for more info |
|
strictMinMaxSelection # |
Type Rescales the axis to exactly the lowest and highest values in view as the chart zooms, without rounding. Keeps series of derived values, such as Has no effect with @since 5.1.11 |
|
syncWithAxis # |
Type Another Click here for more info |
|
syncZeros # |
Type Default Lines up this axis's zero with the zero of Click here for more info |
|
tabindexOrder # |
Type Inherited from An internal order by which focusable elements will be selected within the chart. Click here for more info |
|
templateField # |
Type Inherited from Field in the data item's data object that holds settings for this element, applied over its template's. Click here for more info |
|
themeTags # |
Type Inherited from Tags that theme rules can target. They also count for the element's children, so a rule can match a child by a tag of its parent. Click here for more info |
|
themeTagsSelf # |
Type Inherited from Tags that theme rules can target, like Click here for more info |
|
themes # |
Type Inherited from Themes applied to the element and everything inside it. |
|
toggleKey # |
Type Inherited from Setting that a click or tap toggles between
|
|
tooltip # |
Type Inherited from Tooltip that shows the axis value at the cursor's position. |
|
tooltipHTML # |
Type Inherited from HTML content of the element's tooltip, shown in place of @since 5.2.11 |
|
tooltipLocation # |
Type Default Inherited from Where within a cell the tooltip snaps to when |
|
tooltipNumberFormat # |
Type Number format for the axis tooltip. If not set, Click here for more info |
|
tooltipPosition # |
Type Default Inherited from Where the tooltip points: |
|
tooltipText # |
Type Inherited from Text of the element's tooltip. It can hold data placeholders, such as |
|
tooltipX # |
Type Default Inherited from Where on the element the tooltip points, horizontally: pixels from its left edge, or a percent of its width. |
|
tooltipY # |
Type Default Inherited from Where on the element the tooltip points, vertically: pixels from its top edge, or a percent of its height. |
|
treatZeroAs # |
Type On a Click here for more info |
|
userData # |
Type Inherited from Any data of your own to keep with the element. |
|
verticalScrollbar # |
Type Inherited from A Click here for more info |
|
visible # |
Type Default Inherited from Whether the element is shown. Unlike |
|
wheelable # |
Type Inherited from Makes the element receive mouse wheel events. While the pointer is over it, the wheel no longer scrolls the page. |
|
width # |
Type Inherited from Width in pixels, or a |
|
x # |
Type Inherited from X position in the parent: pixels from its left edge, or a |
|
y # |
Type Inherited from Y position in the parent: pixels from its top edge, or a |
|
zoomOut # |
Type Default Inherited from
@since 5.14.0 |
|
zoomX # |
Type Inherited from
Click here for more info |
|
zoomY # |
Type Inherited from
Click here for more info |
|
zoomable # |
Type Inherited from
|
| There are 117 inherited items currently hidden from this list. | |
Private settings
These are read-only settings accessible from a ValueAxis object using its getPrivate() method.
Read about private settings.
|
cellWidth # |
Read only
Type Inherited from Distance in pixels between grid lines (read-only). Approximate on a Watch it to resize or hide labels so they don't overlap. |
|---|---|
|
focusable # |
Read only
Type Inherited from If set to @since 5.3.16 |
|
htmlElement # |
Read only
Type Inherited from The |
|
htmlElementWrapper # |
Read only
Type Inherited from A wrapper @since 5.11.2 |
|
lastTooltipCoords # |
Read only
Type Inherited from The last point the tooltip was shown at, so it is not shown again at the same place. @since 5.11.3 |
|
max # |
Read only
Type Current highest value of the whole axis scale, not just the part in view. @readonly |
|
maxFinal # |
Read only
Type The highest value of the axis scale once it settles. When the scale changes, @readonly |
|
min # |
Read only
Type Current lowest value of the whole axis scale, not just the part in view. @readonly |
|
minFinal # |
Read only
Type The lowest value of the axis scale once it settles. When the scale changes, @readonly |
|
selectionMax # |
Read only
Type Highest value of the visible (zoomed) part of the axis. Except on a @readonly |
|
selectionMaxFinal # |
Read only
Type The highest visible value the axis is zooming to. During a zoom animation, @readonly |
|
selectionMin # |
Read only
Type Lowest value of the visible (zoomed) part of the axis. Except on a @readonly |
|
selectionMinFinal # |
Read only
Type The lowest visible value the axis is zooming to. During a zoom animation, @readonly |
|
selectionStepFinal # |
Read only
Type The grid step the axis will have once the zoom animation ends. @readonly |
|
showingTooltip # |
Read only
Type Inherited from
|
|
step # |
Read only
Type Value step between grid lines. @readonly |
|
stepDecimalPlaces # |
Read only
Type Decimal places used when formatting axis labels. @readonly |
|
tooltipPosition # |
Read only
Type Inherited from Position on the axis ( |
|
tooltipTarget # |
Read only
Type Inherited from An element whose tooltip point and colors the tooltip uses, in place of this element's. |
|
trustBounds # |
Read only
Type Inherited from Checks that the pointer is within the element's bounds before dispatching It is @since 5.5.0 |
| There are 9 inherited items currently hidden from this list. | |
Properties
|
adapters # |
Type Default Inherited from |
|---|---|
|
axisHeader # |
Type Default })._markC("themeTags", })._markC("themeTags", Inherited from A container for extra content, such as a legend, a label or an icon. It sits above a Y axis, and to the left of an X axis. Click here for more info |
|
axisRanges # |
Type Default Inherited from The axis's ranges: highlighted values or spans, each with its own grid, label and fill. Click here for more info |
|
bulletsContainer # |
Type Default Inherited from Holds the axis's bullets. |
|
chart # |
Type Inherited from The chart the axis belongs to. |
|
children # |
Type Default Inherited from The container's child elements. |
|
className # |
Static
Type Default |
|
classNames # |
Static
Type Default |
|
data # |
Type Inherited from The component's data: a list of data objects, each made into a data item. Click here for more info |
|
dataItem # |
Type Inherited from The element's NOTE: data items are assigned automatically in most cases where it matters. Set one only if you know what you are doing. |
|
dataItems # |
Type Inherited from The component's data items. |
|
enableDispose # |
Type Default Inherited from Set to |
|
events # |
Inherited from |
|
ghostLabel # |
Type Inherited from An invisible label that keeps room for the axis's widest label, so the axis doesn't shrink while zooming (see Click here for more info |
|
gridContainer # |
Type Default Inherited from Holds the axis's grid and fills, drawn below the series. |
|
inited # |
Type Default Inherited from Becomes |
|
labelsContainer # |
Type Default Inherited from Holds the axis's labels and ticks. |
|
minorDataItems # |
Type Default Inherited from Data items of the minor grid. |
|
parent # |
Type Inherited from Parent |
|
root # |
Type Inherited from The @readonly |
|
series # |
Type Inherited from A list of series using this axis. |
|
states # |
Type Default Inherited from |
|
template # |
Type Inherited from A |
|
topGridContainer # |
Type Default Inherited from Holds the grid and fills of axis ranges set to be drawn |
|
uid # |
Type Default Inherited from A unique number, given to each object as it is created. |
|
virtualParent # |
Type Inherited from |
| There are 24 inherited items currently hidden from this list. | |
Methods
|
allChildren() |
Returns Inherited from Returns all children, including the background, vertical scrollbar and mask. |
|---|---|
|
animate( options: ) |
Returns Inherited from Animates a setting from its current value (or Click here for more info |
|
appear( duration?: ) |
Returns Inherited from Plays the reveal animation: hides the element at once, then shows it, whether it was hidden or not. |
|
basePosition() |
Returns Returns the position ( |
|
baseValue() |
Returns Returns the |
|
compositeOpacity() |
Returns Inherited from Returns the element's opacity multiplied by those of all its parents. @since 5.2.11 |
|
compositeRotation() |
Returns Inherited from Returns the element's rotation plus those of all its parents, in degrees. @since 5.9.2 |
|
compositeScale() |
Returns Inherited from Returns the element's scale multiplied by those of all its parents. @since 5.9.2 |
|
contentHeight() |
Returns Inherited from |
|
contentWidth() |
Returns Inherited from |
|
coordinateToPosition( coordinate: ) |
Returns Inherited from Converts a pixel coordinate along the axis, from its left or top edge, to a position on the axis ( |
|
createAxisRange( axisDataItem: ) |
Returns Inherited from Adds a data item, made with Click here for more info |
|
depth() |
Returns Inherited from Returns how deep the element is in the tree: the number of parents it has. |
|
dispose() |
Returns Inherited from Disposes the object, freeing everything it holds. A disposed object can't be used again. |
|
eachChildren( f: ( child: ) |
Returns Inherited from Calls |
|
get( key: ) |
Returns Inherited from Returns the value of setting Click here for more info |
|
getCellWidthPosition() |
Returns Returns the distance between two grid lines as a share of the visible part of the axis. |
|
getDataItemById( id: ) |
Returns Inherited from Returns the data item whose |
|
getDateFormatter() |
Returns Inherited from Returns the Click here for more info |
|
getDurationFormatter() |
Returns Inherited from Returns the Click here for more info |
|
getNumberFormatter() |
Returns Inherited from Returns the Click here for more info |
|
getSeriesItem( series: ) |
Returns Returns the series data item whose value is closest to a position on the axis. |
|
getTooltip() |
Returns Inherited from Returns the element's |
|
getTooltipText( position: ) |
Returns Returns the text the axis tooltip shows at a position. |
|
getX( value: ) |
Returns Returns the X coordinate in pixels of a value, from the axis's left edge. |
|
getY( value: ) |
Returns Returns the Y coordinate in pixels of a value, from the axis's top edge. |
|
has( key: ) |
Returns Inherited from Returns Click here for more info |
|
height() |
Returns Inherited from Returns the element's height in pixels. |
|
hide( duration?: ) |
Returns Inherited from Hides the element and returns a series.hide().then(function(ev) {
console.log("Series finished hiding");
})
series.hide().then(function(ev) {
console.log("Series finished hiding");
})
|
|
hideTooltip() |
Returns Inherited from Hides the element's |
|
hover() |
Returns Inherited from Hovers the element as if the pointer were over it: applies its hover state and shows its tooltip. |
|
innerHeight() |
Returns Inherited from Returns the container's height without padding, in pixels. |
|
innerWidth() |
Returns Inherited from Returns the container's width without padding, in pixels. |
|
isDisposed() |
Returns Inherited from Returns |
|
isDragging() |
Returns Inherited from Returns |
|
isFocus() |
Returns Inherited from Returns |
|
isHidden() |
Returns Inherited from Returns |
|
isHiding() |
Returns Inherited from Returns |
|
isHover() |
Returns Inherited from Returns |
|
isShowing() |
Returns Inherited from Returns |
|
isType( type: ) |
Returns Inherited from Returns |
|
isVisible() |
Returns Inherited from Returns |
|
isVisibleDeep() |
Returns Inherited from Same as @since 5.2.7 |
|
makeDataItem( data: ) |
Returns Inherited from Creates and processes a data item, without adding it to |
|
markDirtyKey( key: ) |
Returns Inherited from Marks a setting as changed, so the element reads it again, running its adapters, on the next frame. |
|
markDirtyValues( _dataItem?: ) |
Returns Inherited from Makes the component redraw from its data on the next frame. @since 5.0.21 |
|
maxHeight() |
Returns Inherited from Returns the most height the element may take, in pixels: its |
|
maxWidth() |
Returns Inherited from Returns the most width the element may take, in pixels: its |
|
new( root: ) |
Static Returns Inherited from Creates an instance of the class. Use it instead of Click here for more info |
|
off( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
offDebounced( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
offDebouncedPrivate( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
offPrivate( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
on( key: ) |
Returns Inherited from Calls Click here for more info |
|
onDebounced( key: ) |
Returns Inherited from Like Click here for more info |
|
onPrivate( key: ) |
Returns Inherited from Calls Click here for more info |
|
onPrivateDebounced( key: ) |
Returns Inherited from Like Click here for more info |
|
once( key: ) |
Returns Inherited from Like Click here for more info |
|
onceDebounced( key: ) |
Returns Inherited from Like Click here for more info |
|
positionToValue( position: ) |
Returns Converts a position on the axis ( |
|
pushDataItem( data: ) |
Returns Inherited from Creates a data item straight from settings, not from data, and adds it to the component's data items. |
|
remove( key: ) |
Returns Inherited from Removes the value set for setting Click here for more info |
|
removeAll() |
Returns Inherited from Removes all settings, as Click here for more info |
|
scrollToChild( child: ) |
Returns Inherited from Scrolls the container so that the child comes into view, if it is out of view. Works only on a container with a @since 5.10.5 |
|
set( key: ) |
Returns Inherited from Sets setting Click here for more info |
|
setAll( settings: ) |
Returns Inherited from Sets several settings at once, from an object of key-value pairs. Click here for more info |
|
setTimeout( fn: () => ) |
Returns Inherited from Calls |
|
show( duration?: ) |
Returns Inherited from Shows the element and returns a series.show().then(function(ev) {
console.log("Series is now fully visible");
})
series.show().then(function(ev) {
console.log("Series is now fully visible");
})
|
|
showTooltip( point?: ) |
Returns Inherited from Shows the element's |
|
toAxisPosition( position: ) |
Returns Inherited from Converts a position in the plot area ( |
|
toBack() |
Returns Inherited from Moves the element to the start of its parent's children, so it is drawn under its siblings, or, in a layout, placed first. |
|
toFront() |
Returns Inherited from Moves the element to the end of its parent's children, so it is drawn over its siblings, or, in a layout, placed last. |
|
toGlobal( point: ) |
Returns Inherited from Converts a point within the element to a point relative to the root. |
|
toGlobalPosition( position: ) |
Returns Inherited from Converts a position on the axis to a position in the plot area ( @since 5.4.2 |
|
toLocal( point: ) |
Returns Inherited from Converts a point relative to the root to a point within the element. |
|
unhover() |
Returns Inherited from Ends a hover, as if the pointer left the element: hides its tooltip and takes it out of its hover state. |
|
updateData( data: ) |
Returns Inherited from Updates the data in place, keeping the existing data items: each object's values go into the data item at the same index. Extra objects are added as new data items, and data items beyond the new data are removed. |
|
updateTooltip() |
Returns Inherited from Moves the axis tooltip, and the series tooltips it drives, to the cursor's current position. Call it after changing the zoom from code. |
|
valueToPosition( value: ) |
Returns Converts a value to a position on the axis ( |
|
width() |
Returns Inherited from Returns the element's width in pixels. |
|
x() |
Returns Inherited from Returns the element's X position in pixels, relative to its parent, without |
|
y() |
Returns Inherited from Returns the element's Y position in pixels, relative to its parent, without |
|
zoom( start: ) |
Returns Inherited from Zooms the axis to the range between |
|
zoomToValues( start: ) |
Returns Zooms the axis to the range between two values. |
| There are 74 inherited items currently hidden from this list. | |
Events
Add event handlers to ValueAxis object using its events.on() method.
Read about adding event handlers.
| #blur |
Param { originalEvent: Inherited from Invoked when element loses focus. |
|---|---|
| #boundschanged |
Param { type: Inherited from The element's bounds changed. |
| #click |
Param { type: Inherited from The element was clicked or tapped. A press and release more than 5 pixels apart is not a click. |
| #dataitemchanged |
Param { newDataItem: Inherited from The element's data item changed. |
| #datavalidated |
Param { type: Inherited from The component's data changed and was processed. |
| #dblclick |
Param { type: Inherited from The element was double-clicked or double-tapped. Also dispatched on its parents. |
| #dragged |
Param { type: Inherited from The element moved while being dragged. |
| #dragstart |
Param { type: Inherited from Dragging of the element started: the pointer moved more than 5 pixels after pressing on it. |
| #dragstop |
Param { type: Inherited from Dragging of the element stopped. |
| #focus |
Param { originalEvent: Inherited from Invoked when element gains focus. |
| #globalpointerdown |
Param { type: Inherited from A pointer button was pressed, or a touch started, anywhere in the window, even outside the chart. |
| #globalpointermove |
Param { type: Inherited from The pointer moved anywhere in the window, even outside the chart. |
| #globalpointerup |
Param { type: Inherited from A pointer button was released, or a touch ended, anywhere in the window, even outside the chart. |
| #middleclick |
Param { type: Inherited from The element was clicked with the middle mouse button. |
| #pointerdown |
Param { type: Inherited from A pointer button was pressed, or a touch started, over the element. Also dispatched on its parents. |
| #pointerout |
Param { type: Inherited from The pointer left the element. |
| #pointerover |
Param { type: Inherited from The pointer moved over the element. |
| #pointerup |
Param { type: Inherited from A pointer button was released, or a touch ended, over the element. |
| #positionchanged |
Param { type: Inherited from The element's position changed. |
| #rightclick |
Param { type: Inherited from The element was clicked with the right mouse button. |
| #valueschanged |
Param { type: Inherited from Values of the component's data items changed. |
| #wheel |
Param { originalEvent: Inherited from The mouse wheel turned while the pointer was over the element. Also dispatched on its parents. |
| There are 22 inherited items currently hidden from this list. | |