public class HighchartOptions extends Object
The HighchartOptions class handles chart theming and generates Javascript for GlobalOptions and ChartOptions.
This class is only needed if you use the GlobalOptions and ChartOptions classes separately from outside the Highchart class
and do not use the Highchart class.
The GlobalOptions class maps directly to the Highcharts global options in the Highcharts API.
Global options are added to your web page using Highcharts.setOptions({GlobalOptions});
The ChartOptions class maps directly to the Highcharts chart options in the Highcharts API.
Chart options are added to your web page using Highcharts.chart({ChartOptions});
All Highchart global options can be set from the GlobalOptions class.
All Highchart chart options can be set from the ChartOptions class.
Constructor and Description |
---|
HighchartOptions() |
Modifier and Type | Method and Description |
---|---|
Theme |
getTheme()
Get the theme object for the chartOptions.
|
HighchartOptions |
setTheme(Theme theme,
ChartOptions chartOptions)
Sets the theme for the chartOptions.
|
String |
toJs(ChartOptions chartOptions)
Converts chart options to Javascript.
|
String |
toJs(GlobalOptions globalOptions)
Converts global options to Javascript.
|
public String toJs(GlobalOptions globalOptions)
globalOptions
- the global options object.public String toJs(ChartOptions chartOptions)
chartOptions
- the chart options object.public Theme getTheme()
public HighchartOptions setTheme(Theme theme, ChartOptions chartOptions)
theme
- The theme selected for the chartOptions.chartOptions
- The chartOptions to apply the theme.Copyright © 2022. All rights reserved.