public class Navigator extends AbstractConfigurationObject
Modifier and Type | Method and Description |
---|---|
Boolean |
getAdaptToUpdatedData() |
Boolean |
getEnabled() |
Number |
getHeight() |
Number |
getMargin() |
Boolean |
getMaskInside() |
Boolean |
getOpposite() |
PlotOptionsSeries |
getSeries() |
XAxis |
getXAxis() |
YAxis |
getYAxis() |
void |
setAdaptToUpdatedData(Boolean adaptToUpdatedData)
Whether the navigator and scrollbar should adapt to updated data in the
base X axis.
|
void |
setEnabled(Boolean enabled)
Enable or disable the navigator.
|
void |
setHeight(Number height)
The height of the navigator.
|
void |
setMargin(Number margin)
The distance from the nearest element, the X axis or X axis labels.
|
void |
setMaskInside(Boolean maskInside)
Whether the mask should be inside the range marking the zoomed range, or
outside.
|
void |
setOpposite(Boolean opposite)
When the chart is inverted, whether to draw the navigator on the opposite
side.
|
void |
setSeries(PlotOptionsSeries series)
Options for the navigator series.
|
void |
setXAxis(XAxis xAxis)
Options for the navigator X axis.
|
void |
setYAxis(YAxis yAxis)
Options for the navigator Y axis.
|
public Navigator()
public Navigator(Boolean enabled)
public Boolean getAdaptToUpdatedData()
setAdaptToUpdatedData(Boolean)
public void setAdaptToUpdatedData(Boolean adaptToUpdatedData)
false
. Otherwise new data will trigger navigator redraw,
which will cause unwanted looping. In the demo below, the data in the
navigator is set only once. On navigating, only the main chart content is
updated.
Defaults to: true
public Boolean getEnabled()
setEnabled(Boolean)
public void setEnabled(Boolean enabled)
Defaults to: true
public Number getHeight()
setHeight(Number)
public void setHeight(Number height)
Defaults to: 40
public Number getMargin()
setMargin(Number)
public void setMargin(Number margin)
Defaults to: 25
public Boolean getMaskInside()
setMaskInside(Boolean)
public void setMaskInside(Boolean maskInside)
false
.
Defaults to: true
public Boolean getOpposite()
setOpposite(Boolean)
public void setOpposite(Boolean opposite)
Defaults to: false
public PlotOptionsSeries getSeries()
setSeries(PlotOptionsSeries)
public void setSeries(PlotOptionsSeries series)
Options for the navigator series. Available options are the same as any series, documented at plotOptions and series.
Unless data is explicitly defined on navigator.series, the data is borrowed from the first series in the chart.
Default series options for the navigator series are:
series: { type: 'areaspline', color: '#4572A7', fillOpacity: 0.05, dataGrouping: { smoothed: true }, lineWidth: 1, marker: { enabled: false } }
public XAxis getXAxis()
setXAxis(XAxis)
public void setXAxis(XAxis xAxis)
xAxis: { tickWidth: 0, lineWidth: 0, gridLineWidth: 1, tickPixelInterval: 200, labels: { align: 'left', style: { color: '#888' }, x: 3, y: -4 } }
public YAxis getYAxis()
setYAxis(YAxis)
public void setYAxis(YAxis yAxis)
yAxis: { gridLineWidth: 0, startOnTick: false, endOnTick: false, minPadding: 0.1, maxPadding: 0.1, labels: { enabled: false }, title: { text: null }, tickWidth: 0 }
Copyright © 2025. All rights reserved.