public class HighchartOptions extends Object
The HighchartOptions class handles chart theming and generates Javascript for GlobalOptions and ChartOptions
for the case where you choose to not use the Highchart class.
The GlobalOptions class maps directly to the Highcharts global options in the Highcharts API.
The ChartOptions class maps directly to the Highcharts chart options in the Highcharts API.
All Highchart global options can be set from the GlobalOptions class.
All Highchart chart options can be set from the ChartOptions class.
Note: This class is only needed if you do not use the Highchart class.
ie. if you use the GlobalOptions and ChartOptions classes separately from outside the Highchart 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.