public class Highchart extends Object
The Highcharts class wraps both the GlobalOptions and ChartOptions classes into one convenient class to
make usage as simple as possible.
Handles chart theming; the setting of global and chart options; generates Javascript for GlobalOptions and ChartOptions.
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 by getting a reference to GlobalOptions from this class via getGlobalOptions().
All Highchart chart options can be set by getting a reference to ChartOptions from this class via getChartOptions().
Constructor and Description |
---|
Highchart() |
Modifier and Type | Method and Description |
---|---|
String |
chartOptionsToJs()
Converts chart options to Javascript.
|
ChartOptions |
getChartOptions()
Get a reference to the chartOptions object for the chart.
|
GlobalOptions |
getGlobalOptions()
Get a reference to the globalOptions object for the chart.
|
Theme |
getTheme()
Get the theme object for the chart.
|
String |
globalOptionsToJs()
Converts global options to Javascript.
|
void |
setTheme(Theme theme)
Sets the theme for the chart.
|
public String globalOptionsToJs()
public String chartOptionsToJs()
public GlobalOptions getGlobalOptions()
public ChartOptions getChartOptions()
public Theme getTheme()
public void setTheme(Theme theme)
theme
- The theme selected for the chart.Copyright © 2022. All rights reserved.