public abstract class PlotOptions extends Options
PlotOptions is a wrapper for config objects for each series type. The config objects for each series can also be overridden for each series item as given in the series array. Configuration options for the series are given in three levels. Options for all series in a chart are given in the plotOptions.series object. Then options for all series of a specific type are given in the plotOptions of that type, for example plotOptions.line. Next, options for one single series are given in the series array.
| Modifier and Type | Field and Description |
|---|---|
Boolean |
allowPointSelect
Allow this series' points to be selected by clicking on the markers, bars or pie slices.
|
AnimationOptions |
animation
Enable or disable the initial animation when a series is displayed.
|
Integer |
animationLimit
For some series, there is a limit that shuts down initial animation by default when the total
number of points in the chart is too high.
|
Integer |
boostThreshold
Set the point threshold for when a series should enter boost mode.
|
String |
className
A CSS class name to apply to the series' graphical elements.
|
String |
color
The main color or the series.
|
Boolean |
colorByPoint
When using automatic point colors pulled from the options.colors collection, this option
determines whether the chart should receive one color per series or one color per point.
|
Integer |
colorIndex
Styled mode only.
|
List<String> |
colors
A series specific or series type specific color set to apply instead of the global colors
when colorByPoint is true.
|
Boolean |
connectEnds
Polar charts only.
|
Boolean |
connectNulls
Whether to connect a graph line across null points.
|
Double |
cropThreshold
When the series contains less points than the crop threshold, all points are drawn, event if
the points fall outside the visible plot area at the current zoom.
|
String |
cursor
You can set the cursor to "pointer" if you have click events attached to the series, to
signal to the user that the points and lines can be clicked.
|
DashStyle |
dashStyle
A name for the dash style to use for the graph.
|
DataLabelOptions |
dataLabels
Options for data labels.
|
String |
description
Requires the Accessibility module.
|
Boolean |
enableMouseTracking
Enable or disable the mouse tracking for a specific series.
|
Boolean |
exposeElementToA11y
Requires the Accessibility module.
|
String |
findNearestPointBy
Determines whether the series should look for the nearest point in both dimensions or just
the x-dimension when hovering the series.
|
Boolean |
getExtremesFromAll
Whether to use the Y extremes of the total chart width or only the zoomed area when zooming
in on parts of the X axis.
|
String |
id
An id for the series.
|
List<String> |
keys
An array specifying which option maps to which key in the data point array.
|
PlotLabelOptions |
label
Text labels for the plot bands.
|
String |
linecap
The line cap used for line ends and line joins on the graph.
|
Integer |
lineWidth
Pixel with of the graph line.
|
String |
linkedTo
The id of another series to link to.
|
MarkerOptions |
marker
Options for point markers.
|
String |
negativeColor
The color for the parts of the graph or points that are below the threshold.
|
Double |
pointInterval
If no x values are given for the points in a series, pointInterval defines the interval of
the x values.
|
String |
pointIntervalUnit
On datetime series, this allows for setting the pointInterval to irregular time units, day,
month and year.
|
String |
pointPlacement
Possible values: null, "on", "between".
|
Double |
pointStart
If no x values are given for the points in a series, pointStart defines on what value to
start.
|
Boolean |
selected
Whether to select the series initially.
|
Object |
shadow
Boolean value whether to apply a drop shadow to the graph line.
|
Boolean |
showCheckbox
If true, a checkbox is displayed next to the legend item to allow selecting the series.
|
Boolean |
showInLegend
Whether to display this particular series or series type in the legend.
|
Boolean |
skipKeyboardNavigation
If set to True, the accessibility module will skip past the points in this series for
keyboard navigation.
|
Boolean |
softThreshold
When this is true, the series will not cause the Y axis to cross the zero plane (or threshold
option) unless the data actually crosses the plane.
|
String |
stacking
Whether to stack the values of each series on top of each other.
|
AlignHorizontal |
step
Whether to apply steps to the line.
|
Boolean |
stickyTracking
Sticky tracking of mouse events.
|
Double |
threshold
The threshold, also called zero level or base level.
|
TooltipOptions |
tooltip
A configuration object for the tooltip rendering of each single series.
|
Integer |
turboThreshold
When a series contains a data array that is longer than this, only one dimensional arrays of
numbers, or two dimensional arrays with x and y values are allowed.
|
protected String |
type
The text identifier of the plot type.
|
Boolean |
visible
Set the initial visibility of the series.
|
String |
zoneAxis
Defines the axis on which the zones are applied.
|
List<Zone> |
zones
An array defining zones within a series.
|
| Constructor and Description |
|---|
PlotOptions() |
| Modifier and Type | Method and Description |
|---|---|
OptionMap |
toMap()
If type is not null, place options under a submap indexed by the type id.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformForClient@Option public Boolean allowPointSelect
@Option public final AnimationOptions animation
@Option public Integer animationLimit
@Option public Integer boostThreshold
@Option public String className
@Option public String color
@Option public Integer colorIndex
@Option public Boolean colorByPoint
@Option public List<String> colors
@Option public Boolean connectEnds
@Option public Boolean connectNulls
@Option public Double cropThreshold
@Option public String cursor
@Option public DashStyle dashStyle
@Option public final DataLabelOptions dataLabels
DataLabelOptions@Option public String description
@Option public Boolean enableMouseTracking
@Option public Boolean exposeElementToA11y
@Option public String findNearestPointBy
@Option public Boolean getExtremesFromAll
@Option public final List<String> keys
@Option public final PlotLabelOptions label
@Option public String linecap
@Option public String linkedTo
@Option public final MarkerOptions marker
MarkerOptions@Option public String negativeColor
@Option public Double pointInterval
@Option public String pointIntervalUnit
@Option public String pointPlacement
@Option public Double pointStart
@Option public Boolean selected
@Option public Object shadow
ShadowOptions@Option public Boolean showCheckbox
@Option public Boolean showInLegend
@Option public Boolean skipKeyboardNavigation
@Option public Boolean softThreshold
@Option public String stacking
@Option public AlignHorizontal step
@Option public Boolean stickyTracking
@Option public Double threshold
@Option public final TooltipOptions tooltip
@Option public Integer turboThreshold
@Option public String zoneAxis
@Option public final List<Zone> zones
public OptionMap toMap()
toMap in interface OptionMap.IOptionMapConvertertoMap in class OptionsCopyright © 2018 Fujion Framework. All rights reserved.