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.
Constructor and Description |
---|
ChartOptions() |
Modifier and Type | Method and Description |
---|---|
Chart |
chart()
General options for the chart.
|
ChartOptions |
chart(Chart chart)
General options for the chart.
|
List<Color> |
colors() |
ChartOptions |
colors(List<Color> colors) |
Color |
colorsSingle() |
Exporting |
exporting()
Options for the exporting module.
|
ChartOptions |
exporting(Exporting exporting)
Options for the exporting module.
|
Chart |
getChart()
General options for the chart.
|
List<Color> |
getColors() |
Color |
getColorsSingle() |
Exporting |
getExporting()
Options for the exporting module.
|
Legend |
getLegend()
Options for the tooltip that appears when the user hovers over a series or point.
|
PlotOptions |
getPlotOptions()
The plotOptions is a wrapper object for config objects for each series type.
|
Responsive |
getResponsive()
Allows setting a set of rules to apply for different screen or chart sizes.
|
List<Series> |
getSeries() |
Series |
getSeriesSingle() |
Subtitle |
getSubtitle()
The chart's subtitle.
|
Title |
getTitle()
The chart's main title.
|
Tooltip |
getTooltip() |
List<XAxis> |
getXAxis()
The X axis or category axis.
|
XAxis |
getXAxisSingle()
The X axis or category axis.
|
List<YAxis> |
getYAxis()
The Y axis or value axis.
|
YAxis |
getYAxisSingle()
The Y axis or value axis.
|
Legend |
legend()
Options for the tooltip that appears when the user hovers over a series or point.
|
ChartOptions |
legend(Legend legend)
Options for the tooltip that appears when the user hovers over a series or point.
|
PlotOptions |
plotOptions()
The plotOptions is a wrapper object for config objects for each series type.
|
ChartOptions |
plotOptions(PlotOptions plotOptions)
The plotOptions is a wrapper object for config objects for each series type.
|
Responsive |
responsive()
Allows setting a set of rules to apply for different screen or chart sizes.
|
ChartOptions |
responsive(Responsive responsive)
Allows setting a set of rules to apply for different screen or chart sizes.
|
List<Series> |
series() |
ChartOptions |
series(List<Series> series) |
Series |
seriesSingle() |
ChartOptions |
setChart(Chart chart)
General options for the chart.
|
ChartOptions |
setColors(List<Color> colors) |
ChartOptions |
setExporting(Exporting exporting)
Options for the exporting module.
|
ChartOptions |
setLegend(Legend legend)
Options for the tooltip that appears when the user hovers over a series or point.
|
ChartOptions |
setPlotOptions(PlotOptions plotOptions)
The plotOptions is a wrapper object for config objects for each series type.
|
ChartOptions |
setResponsive(Responsive responsive)
Allows setting a set of rules to apply for different screen or chart sizes.
|
ChartOptions |
setSeries(List<Series> series) |
ChartOptions |
setSubtitle(Subtitle subtitle)
The chart's subtitle.
|
ChartOptions |
setTitle(Title title)
The chart's main title.
|
ChartOptions |
setTooltip(Tooltip tooltip) |
ChartOptions |
setXAxis(List<XAxis> xAxis)
The X axis or category axis.
|
ChartOptions |
setYAxis(List<YAxis> yAxis)
The Y axis or value axis.
|
Subtitle |
subtitle()
The chart's subtitle.
|
ChartOptions |
subtitle(Subtitle subtitle)
The chart's subtitle.
|
Title |
title()
The chart's main title.
|
ChartOptions |
title(Title title)
The chart's main title.
|
Tooltip |
tooltip() |
ChartOptions |
tooltip(Tooltip tooltip) |
List<XAxis> |
xAxis()
The X axis or category axis.
|
ChartOptions |
xAxis(List<XAxis> xAxis)
The X axis or category axis.
|
XAxis |
xAxisSingle()
The X axis or category axis.
|
List<YAxis> |
yAxis()
The Y axis or value axis.
|
ChartOptions |
yAxis(List<YAxis> yAxis)
The Y axis or value axis.
|
YAxis |
yAxisSingle()
The Y axis or value axis.
|
set_hcNulledOption
public Chart chart()
General options for the chart.
public ChartOptions chart(Chart chart)
General options for the chart.
chart
- the value for the chart optionpublic Chart getChart()
General options for the chart.
public ChartOptions setChart(Chart chart)
General options for the chart.
chart
- the value for the chart optionpublic Color colorsSingle()
public ChartOptions colors(List<Color> colors)
colors
- the value for the colors optionpublic Color getColorsSingle()
public ChartOptions setColors(List<Color> colors)
colors
- the value for the colors optionpublic Exporting exporting()
Options for the exporting module. For an overview on the matter, see the docs.
public ChartOptions exporting(Exporting exporting)
Options for the exporting module. For an overview on the matter, see the docs.
exporting
- the value for the exporting optionpublic Exporting getExporting()
Options for the exporting module. For an overview on the matter, see the docs.
public ChartOptions setExporting(Exporting exporting)
Options for the exporting module. For an overview on the matter, see the docs.
exporting
- the value for the exporting optionpublic Legend legend()
Options for the tooltip that appears when the user hovers over a series or point.
public ChartOptions legend(Legend legend)
Options for the tooltip that appears when the user hovers over a series or point.
legend
- the value for the legend optionpublic Legend getLegend()
Options for the tooltip that appears when the user hovers over a series or point.
public ChartOptions setLegend(Legend legend)
Options for the tooltip that appears when the user hovers over a series or point.
legend
- the value for the legend optionpublic 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.
public ChartOptions plotOptions(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 optionpublic 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 optionpublic Responsive responsive()
Allows setting a set of rules to apply for different screen or chart sizes. Each rule specifies additional chart options.
public ChartOptions responsive(Responsive responsive)
Allows setting a set of rules to apply for different screen or chart sizes. Each rule specifies additional chart options.
responsive
- the value for the responsive optionpublic Responsive getResponsive()
Allows setting a set of rules to apply for different screen or chart sizes. Each rule specifies additional chart options.
public ChartOptions setResponsive(Responsive responsive)
Allows setting a set of rules to apply for different screen or chart sizes. Each rule specifies additional chart options.
responsive
- the value for the responsive optionpublic Series seriesSingle()
public ChartOptions series(List<Series> series)
series
- the value for the series optionpublic Series getSeriesSingle()
public ChartOptions setSeries(List<Series> series)
series
- the value for the series optionpublic Subtitle subtitle()
The chart's subtitle. This can be used both to display a subtitle below the main title, and to display random text anywhere in the chart. The subtitle can be updated after chart initialization through the Chart.setTitle
method.
public ChartOptions subtitle(Subtitle subtitle)
The chart's subtitle. This can be used both to display a subtitle below the main title, and to display random text anywhere in the chart. The subtitle can be updated after chart initialization through the Chart.setTitle
method.
subtitle
- the value for the subtitle optionpublic Subtitle getSubtitle()
The chart's subtitle. This can be used both to display a subtitle below the main title, and to display random text anywhere in the chart. The subtitle can be updated after chart initialization through the Chart.setTitle
method.
public ChartOptions setSubtitle(Subtitle subtitle)
The chart's subtitle. This can be used both to display a subtitle below the main title, and to display random text anywhere in the chart. The subtitle can be updated after chart initialization through the Chart.setTitle
method.
subtitle
- the value for the subtitle optionpublic Title title()
The chart's main title.
public ChartOptions title(Title title)
The chart's main title.
title
- the value for the title optionpublic Title getTitle()
The chart's main title.
public ChartOptions setTitle(Title title)
The chart's main title.
title
- the value for the title optionpublic Tooltip tooltip()
public ChartOptions tooltip(Tooltip tooltip)
tooltip
- the value for the tooltip optionpublic Tooltip getTooltip()
public ChartOptions setTooltip(Tooltip tooltip)
tooltip
- the value for the tooltip optionpublic XAxis xAxisSingle()
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 object for programmatic access to the axis.
public 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 object for programmatic access to the axis.
public ChartOptions xAxis(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 object for programmatic access to the axis.
xAxis
- the value for the xAxis optionpublic 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 object 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 object 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 object for programmatic access to the axis.
xAxis
- the value for the xAxis optionpublic YAxis yAxisSingle()
The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
See the Axis object for programmatic access to the axis.
public List<YAxis> yAxis()
The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
See the Axis object for programmatic access to the axis.
public ChartOptions yAxis(List<YAxis> yAxis)
The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
See the Axis object for programmatic access to the axis.
yAxis
- the value for the yAxis optionpublic YAxis getYAxisSingle()
The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
See the Axis object for programmatic access to the axis.
public List<YAxis> getYAxis()
The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
See the Axis object for programmatic access to the axis.
public ChartOptions setYAxis(List<YAxis> yAxis)
The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
See the Axis object for programmatic access to the axis.
yAxis
- the value for the yAxis optionCopyright © 2022. All rights reserved.