public class Rules extends BaseOption
A set of rules for responsive settings. The rules are executed from the top down.
Copyright (c) 2018 Powerbuilt Systems. All rights reserved.Constructor and Description |
---|
Rules() |
Modifier and Type | Method and Description |
---|---|
ChartOptions |
chartOptions()
A full set of chart options to apply as overrides to the general chart options.
|
Rules |
chartOptions(ChartOptions chartOptions)
A full set of chart options to apply as overrides to the general chart options.
|
Condition |
condition()
Under which conditions the rule applies.
|
Rules |
condition(Condition condition)
Under which conditions the rule applies.
|
ChartOptions |
getChartOptions()
A full set of chart options to apply as overrides to the general chart options.
|
Condition |
getCondition()
Under which conditions the rule applies.
|
Rules |
setChartOptions(ChartOptions chartOptions)
A full set of chart options to apply as overrides to the general chart options.
|
Rules |
setCondition(Condition condition)
Under which conditions the rule applies.
|
set_hcNulledOption
public ChartOptions chartOptions()
A full set of chart options to apply as overrides to the general chart options. The chart options are applied when the given rule is active.
A special case is configuration objects that take arrays, for example xAxis, yAxis or series. For these collections, an id
option is used to map the new option set to an existing object. If an existing object of the same id is not found, the item of the same indexupdated. So for example, setting chartOptions
with two series items without an id
, will cause the existing chart's two series to be updated with respective options.
public Rules chartOptions(ChartOptions chartOptions)
A full set of chart options to apply as overrides to the general chart options. The chart options are applied when the given rule is active.
A special case is configuration objects that take arrays, for example xAxis, yAxis or series. For these collections, an id
option is used to map the new option set to an existing object. If an existing object of the same id is not found, the item of the same indexupdated. So for example, setting chartOptions
with two series items without an id
, will cause the existing chart's two series to be updated with respective options.
chartOptions
- the value for the chartOptions optionpublic ChartOptions getChartOptions()
A full set of chart options to apply as overrides to the general chart options. The chart options are applied when the given rule is active.
A special case is configuration objects that take arrays, for example xAxis, yAxis or series. For these collections, an id
option is used to map the new option set to an existing object. If an existing object of the same id is not found, the item of the same indexupdated. So for example, setting chartOptions
with two series items without an id
, will cause the existing chart's two series to be updated with respective options.
public Rules setChartOptions(ChartOptions chartOptions)
A full set of chart options to apply as overrides to the general chart options. The chart options are applied when the given rule is active.
A special case is configuration objects that take arrays, for example xAxis, yAxis or series. For these collections, an id
option is used to map the new option set to an existing object. If an existing object of the same id is not found, the item of the same indexupdated. So for example, setting chartOptions
with two series items without an id
, will cause the existing chart's two series to be updated with respective options.
chartOptions
- the value for the chartOptions optionpublic Condition condition()
Under which conditions the rule applies.
public Rules condition(Condition condition)
Under which conditions the rule applies.
condition
- the value for the condition optionpublic Condition getCondition()
Under which conditions the rule applies.
Copyright © 2022. All rights reserved.