Overview
XYChart is the main container for creating charts with X and Y axes. It provides the foundation for line, column, candlestick, and other series types that plot data on a cartesian coordinate system.Settings
If set to
true, users will be able to pan the chart horizontally by dragging plot area.See documentationIf set to
true, users will be able to pan the chart vertically by dragging plot area.See documentationIndicates what happens when mouse wheel is spinned horizontally while over plot area.See documentation
Indicates what happens when mouse wheel is spinned vertically while over plot area.See documentation
Indicates the relative “speed” of the mouse wheel.
Chart’s cursor for displaying crosshairs and tooltips.See documentation
Horizontal scrollbar.See documentation
Vertical scrollbar.
If set, cursor will select closest data item to pointer and show tooltip for it. Also shows tooltips for all data items within X pixels range.Set to
-1 to ensure only one tooltip is displayed.See documentationIndicates how the distance should be measured when assessing distance between tooltips as set in
maxTooltipDistance.See documentationIf set to
false the chart will not check for overlapping of multiple tooltips, and will not arrange them to not overlap.Will work only if chart has an XYCursor enabled.See documentationIf set to
true, using pinch gesture on the chart’s plot area will zoom chart horizontally.See documentationIf set to
true, using pinch gesture on the chart’s plot area will zoom chart vertically.See documentationIf set, will use this relative position as a “center” for mouse wheel horizontal zooming instead of actual cursor position.See documentation
If set, will use this relative position as a “center” for mouse wheel vertical zooming instead of actual cursor position.See documentation
Properties
A list of horizontal axes.
A list of vertical axes.
A Container located on top of the chart, used to store top horizontal axes.See documentation
A Container located on bottom of the chart, used to store bottom horizontal axes.See documentation
A Container located on left of the chart, used to store left-hand vertical axes.See documentation
A Container located on right of the chart, used to store right-hand vertical axes.See documentation
A Container located in the middle of the chart, used to store actual plots (series).NOTE:
plotContainer will automatically have its background preset. If you need to modify background or outline for chart’s plot area, you can use plotContainer.get("background") for that.See documentationA Container axis grid elements are stored in.See documentation
A button that is shown when chart is not fully zoomed out.See documentation
Methods
handleWheel()
inPlot()
Reference point to check
boolean - Is within plot area?
arrangeTooltips()
Events
Invoked when panning starts.
Invoked when panning ends.
Invoked if pointer is pressed down on a chart and released without moving.
panended event will still kick in after that.Invoked when wheel caused zoom ends.