public class HighstockOptions extends Object
The HighstockOptions class can be used as an alternative to the Highstock class.
Global and chart options are configured separately by using the GlobalOptions and ChartOptions classes outside of the Highstock class.
Global options can be configured once and will apply to multiple charts. Global options are optional.
This class handles chart theming and generates Javascript for GlobalOptions and ChartOptions.
The GlobalOptions class maps directly to the Highcharts Stock global options in the Highcharts Stock API.
Global options are added to your web page using Highcharts.setOptions({GlobalOptions});
The ChartOptions class maps directly to the Highcharts Stock chart options in the Highcharts Stock API.
Chart options are added to your web page using Highcharts.stockChart({ChartOptions});
All Highchart Stock global options can be set from the GlobalOptions class.
All Highchart Stock chart options can be set from the ChartOptions class.
Refer to the HyJavaStock documentation for examples on how to use this class.
Constructor and Description |
---|
HighstockOptions() |
Modifier and Type | Method and Description |
---|---|
Theme |
getTheme()
Get the theme object for the chartOptions.
|
HighstockOptions |
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 HighstockOptions setTheme(Theme theme, ChartOptions chartOptions)
theme
- The theme selected for the chartOptions.chartOptions
- The chartOptions to apply the theme.Copyright © 2023. All rights reserved.