public class ChartOptions extends BaseOption
The ChartOptions class maps directly to the Highcharts chart options in the Highcharts API.
All Highchart chart options will be set from this class.
| Modifier and Type | Field and Description |
|---|---|
static ChartOptions |
NULL |
| Constructor and Description |
|---|
ChartOptions() |
| Modifier and Type | Method and Description |
|---|---|
Chart |
getChart()
General options for the chart.
|
List<Color> |
getColors()
Get the colors option.
|
Color |
getColorsSingle() |
Credits |
getCredits()
Highcharts by default puts a credits label in the lower right corner of the chart.
|
PlotOptions |
getPlotOptions()
The plotOptions is a wrapper object for config objects for each series type.
|
List<Series> |
getSeries()
Series options for specific data and the data itself.
|
Series |
getSeriesSingle()
Series options for specific data and the data itself.
|
Title |
getTitle()
The chart's main title.
|
List<XAxis> |
getXAxis()
The X axis or category axis.
|
XAxis |
getXAxisSingle()
The X axis or category axis.
|
ChartOptions |
setChart(Chart chart)
General options for the chart.
|
ChartOptions |
setColors(List<Color> colors)
Set the colors option.
|
ChartOptions |
setCredits(Credits credits)
Highcharts by default puts a credits label in the lower right corner of the chart.
|
ChartOptions |
setPlotOptions(PlotOptions plotOptions)
The plotOptions is a wrapper object for config objects for each series type.
|
ChartOptions |
setSeries(List<Series> series)
Series options for specific data and the data itself.
|
ChartOptions |
setTitle(Title title)
The chart's main title.
|
ChartOptions |
setXAxis(List<XAxis> xAxis)
The X axis or category axis.
|
set_hcNulledOptionpublic static final ChartOptions NULL
public Chart getChart()
General options for the chart.
public ChartOptions setChart(Chart chart)
General options for the chart.
chart - the value for the chart option.public Color getColorsSingle()
public ChartOptions setColors(List<Color> colors)
colors - the value for the colors option.public Credits getCredits()
Highcharts by default puts a credits label in the lower right corner of the chart. This can be changed using these options.
public ChartOptions setCredits(Credits credits)
Highcharts by default puts a credits label in the lower right corner of the chart. This can be changed using these options.
credits - the value for the credits option.public PlotOptions getPlotOptions()
The plotOptions is a wrapper object 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.
public ChartOptions setPlotOptions(PlotOptions plotOptions)
The plotOptions is a wrapper object 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.
plotOptions - the value for the plotOptions option.public Series getSeriesSingle()
Series options for specific data and the data itself. In TypeScript you have to cast the series options to specific series types, to get all possible options for a series.
public List<Series> getSeries()
Series options for specific data and the data itself. In TypeScript you have to cast the series options to specific series types, to get all possible options for a series.
public ChartOptions setSeries(List<Series> series)
Series options for specific data and the data itself. In TypeScript you have to cast the series options to specific series types, to get all possible options for a series.
series - the value for the series option.public Title getTitle()
The chart's main title.
public ChartOptions setTitle(Title title)
The chart's main title.
title - the value for the title option.public XAxis getXAxisSingle()
The X axis or category axis. Normally this is the horizontal axis, though if the chart is inverted this is the vertical axis. In case of multiple axes, the xAxis node is an array of configuration objects.
See the Axis class for programmatic access to the axis.
public List<XAxis> getXAxis()
The X axis or category axis. Normally this is the horizontal axis, though if the chart is inverted this is the vertical axis. In case of multiple axes, the xAxis node is an array of configuration objects.
See the Axis class for programmatic access to the axis.
public ChartOptions setXAxis(List<XAxis> xAxis)
The X axis or category axis. Normally this is the horizontal axis, though if the chart is inverted this is the vertical axis. In case of multiple axes, the xAxis node is an array of configuration objects.
See the Axis class for programmatic access to the axis.
xAxis - the value for the xAxis option.Copyright © 2026. All rights reserved.