public class TreemapPlotOptions extends BaseMapOptions<TreemapPlotOptions>
BaseChart.setTreemapPlotOptions(TreemapPlotOptions) method or directly on a
series via the Series.setPlotOptions(PlotOptions) method.
Note that these options are only needed if you want to specifically control the general options
for all treemap type series in the entire chart. If you instead want to control the options for all
series in the chart (not just those of a treemap type), then you can use the SeriesPlotOptions
class instead. Or, if you want to control the plot options for just one series (and not all treemap type
series in the chart), use the Series.setPlotOptions(PlotOptions) method.| Modifier and Type | Class and Description |
|---|---|
static class |
TreemapPlotOptions.LayoutAlgorithm
An enum representing the available layout algorithms
|
static class |
TreemapPlotOptions.LayoutStartingDirection
A Enum representing the available directions that the layout algorithm will start drawing
|
static class |
TreemapPlotOptions.Level
Configurable inner class used to set options on specific levels.
|
PlotOptions.Cursor, PlotOptions.PointPlacement, PlotOptions.Stacking| Constructor and Description |
|---|
TreemapPlotOptions() |
| Modifier and Type | Method and Description |
|---|---|
TreemapPlotOptions |
setAllowDrillToNode(boolean allowDrillToNode)
Convenience method for setting the 'allowDrillToNode' option of the treemap.
|
TreemapPlotOptions |
setAlternateStartingDirection(boolean alternateStartingDirection)
Convenience method for setting the 'alternateStartingDirection' option of the treemap.
|
TreemapPlotOptions |
setInteractByLeaf(boolean interactByLeaf)
Convenience method for setting the 'interactByLeaf' option of the treemap.
|
TreemapPlotOptions |
setLayoutAlgorithm(TreemapPlotOptions.LayoutAlgorithm layoutAlgorithm)
Convenience method for setting the 'layoutAlgorithm' option of the treemap.
|
TreemapPlotOptions |
setLayoutStartingDirection(TreemapPlotOptions.LayoutStartingDirection layoutStartingDirection)
Convenience method for setting the 'layoutStartingDirection' option of the treemap.
|
TreemapPlotOptions |
setLevelIsConstant(boolean levelIsConstant)
Convenience method for setting the 'levelIsConstant' option of the treemap.
|
TreemapPlotOptions |
setLevels(TreemapPlotOptions.Level... levels)
Convenience method for setting the 'levels' option of the treemap.
|
setBorderColor, setBorderWidth, setHoverStateBorderColor, setHoverStateBorderWidth, setHoverStateBrightness, setHoverStateColor, setHoverStateEnabled, setNormalStateAnimation, setNormalStateAnimation, setSelectStateBorderColor, setSelectStateBorderWidth, setSelectStateColor, setSelectStateEnabledgetDataLabels, setAllowPointSelect, setAnimation, setAnimation, setBaseDataLabels, setColor, setColor, setCropThreshold, setCursor, setDashStyle, setDataGrouping, setDataLabels, setEnableMouseTracking, setHoverStateLineWidth, setHoverStateMarker, setId, setLegendIndex, setLineWidth, setLinkedTo, setLinkedTo, setMarker, setNegativeColor, setNegativeColor, setPointInterval, setPointPlacement, setPointStart, setSelected, setShadow, setShowCheckbox, setShowInLegend, setStacking, setStickyTracking, setThreshold, setTurboThreshold, setVisible, setZIndex, setZoneAxis, setZonesgetOptions, setOptionpublic TreemapPlotOptions setAllowDrillToNode(boolean allowDrillToNode)
treeMapPlotOptions.setOption("allowDrillToNode", true);
allowDrillToNode - When true the user can click on a point which is a parent and zoom in on its children.
Defaults to false.TreemapPlotOptions for convenient method chaining.public TreemapPlotOptions setAlternateStartingDirection(boolean alternateStartingDirection)
treeMapPlotOptions.setOption("alternateStartingDirection", true);
alternateStartingDirection - Allow this series' points to be selected by clicking on the markers, bars or
pie slices. Defaults to false.TreemapPlotOptions for convenient method chaining.public TreemapPlotOptions setInteractByLeaf(boolean interactByLeaf)
treemapPlotOptions.setOption("interactByLeaf", true);
This option decides if the user can interact with the parent nodes or just the leaf nodes. When this option is
undefined, it will be true by default. However when allowDrillToNode is true, then it will be false by default.interactByLeaf - 'true' to allow the user to interact with parent nodes.TreemapPlotOptions for convenient method chaining.public TreemapPlotOptions setLayoutAlgorithm(TreemapPlotOptions.LayoutAlgorithm layoutAlgorithm)
treemapPlotOptions.setOption("layoutAlgorithm", "squarified");
This option decides which algorithm is used for setting position and dimensions of the points.
See TreemapPlotOptions.LayoutAlgorithm for possible options.layoutAlgorithm - The algorithm used for setting position and dimension of the points.TreemapPlotOptions for convenient method chaining.public TreemapPlotOptions setLayoutStartingDirection(TreemapPlotOptions.LayoutStartingDirection layoutStartingDirection)
treemapPlotOptions.setOption("layoutStartingDirection", "horizontal");
Defines which direction the layout algorithm will start drawing. See TreemapPlotOptions.LayoutStartingDirection for
possible optionslayoutStartingDirection - The direction in which the layout algorithm will start drawingTreemapPlotOptions for convenient method chaining.public TreemapPlotOptions setLevelIsConstant(boolean levelIsConstant)
treemapPlotOptions.setOption("levelIsConstant", false);
Used together with the levels and allowDrillToNode options. When set to false the first level visible when
drilling is considered to be level one. Otherwise the level will be the same as the tree structure.
Defaults to true.levelIsConstant - 'false' to make the first level visible when drilling is considered to be level one.TreemapPlotOptions for convenient method chaining.public TreemapPlotOptions setLevels(TreemapPlotOptions.Level... levels)
treemapPlotOptions.setOption("levels", new Level());
Set options on specific levels. Takes precedence over series options, but not point options.levels - An object of the TreemapPlotOptions.Level class containing configuration options
for the series on each particular levelTreemapPlotOptions for convenient method chaining.Copyright © 2015. All Rights Reserved.