public static class TreemapPlotOptions.Level extends Configurable<TreemapPlotOptions.Level>
final TreemapPlotOptions.Level level = new TreemapPlotOptions.Level()
.setLevel(1)
.setLayoutAlgorithm(TreemapPlotOptions.LayoutAlgorithm.SLICE_AND_DICE)
);
chart.setLevels(level);
| Constructor and Description |
|---|
TreemapPlotOptions.Level() |
| Modifier and Type | Method and Description |
|---|---|
TreemapPlotOptions.Level |
setBorderColor(Color borderColor)
Convenience method for setting the 'borderColor' option of the level.
|
TreemapPlotOptions.Level |
setBorderColor(String borderColor)
Convenience method for setting the 'borderColor' option of the level.
|
TreemapPlotOptions.Level |
setBorderDashStyle(PlotLine.DashStyle borderDashStyle)
Convenience method for setting the 'borderDashStyle' option of the level.
|
TreemapPlotOptions.Level |
setBorderWidth(Number borderWidth)
Convenience method for setting the 'borderWidth' option of the level.
|
TreemapPlotOptions.Level |
setColor(Color color)
Convenience method for setting the 'color' option of the level.
|
TreemapPlotOptions.Level |
setColor(String color)
Convenience method for setting the 'color' option of the level.
|
TreemapPlotOptions.Level |
setDataLabels(DataLabels dataLabels)
Convenience method for setting the 'dataLabels' option of the level.
|
TreemapPlotOptions.Level |
setLayoutAlgorithm(TreemapPlotOptions.LayoutAlgorithm layoutAlgorithm)
Convenience method for setting the 'layoutAlgorithm' option of the level.
|
TreemapPlotOptions.Level |
setLayoutStartingDirection(TreemapPlotOptions.LayoutStartingDirection layoutStartingDirection)
Convenience method for setting the 'layoutStartingDirection' option of the level.
|
TreemapPlotOptions.Level |
setLevel(Number level)
Convenience method for setting the 'level' option of the level.
|
getOptions, setOptionpublic TreemapPlotOptions.Level setBorderColor(String borderColor)
level.setOption("borderColor", );
Can set borderColor on all points which lies on the same level.
Note that this method is intended for setting the color to a simple RBG hex value. If you instead
want to set a color to include an alpha channel or a gradient, use the setBorderColor(Color)
version instead.borderColor - The color of the border surrounding each tree map item.TreemapPlotOptions.Level instance for convenient method chaining.public TreemapPlotOptions.Level setBorderColor(Color borderColor)
level.setOption("borderColor", );
Can set borderColor on all points which lies on the same level.
Note that this method is intended for setting the color to a gradient or color that includes
an alpha channel. If you instead just want to set the color to a normal RGB hex value
you can use the setBorderColor(String) version instead.borderColor - The color of the border surrounding each tree map item.TreemapPlotOptions.Level instance for convenient method chaining.public TreemapPlotOptions.Level setBorderDashStyle(PlotLine.DashStyle borderDashStyle)
level.setOption("borderDashStyle", );
Set the dash style of the border of all the point which lies on the level. See PlotLine.DashStyle for
possible options.borderDashStyle - The dash style of point borders.TreemapPlotOptions.Level instance for convenient method chaining.public TreemapPlotOptions.Level setBorderWidth(Number borderWidth)
level.setOption("borderWidth", );
Can set the borderWidth on all points which lies on the same level.borderWidth - The width of point bordersTreemapPlotOptions.Level instance for convenient method chaining.public TreemapPlotOptions.Level setColor(Color color)
level.setOption("color", );
Can set a color on all points which lies on the same level.
Note that this method is intended for setting the color to a gradient or color that includes
an alpha channel. If you instead just want to set the color to a normal RGB hex value
you can use the setBorderColor(String) version instead.color - The color for all points that are on the same level.TreemapPlotOptions.Level instance for convenient method chaining.public TreemapPlotOptions.Level setColor(String color)
level.setOption("color", );
Can set a color on all points which lies on the same level.
Note that this method is intended for setting the color to a simple RBG hex value. If you instead
want to set a color to include an alpha channel or a gradient, use the setColor(Color)
version instead.color - The color for all points that are on the same level.TreemapPlotOptions.Level instance for convenient method chaining.public TreemapPlotOptions.Level setDataLabels(DataLabels dataLabels)
level.setOption("/dataLabels/enabled", true);
level.setOption("/dataLabels/align", Labels.Align.CENTER);
level.setOption("/dataLabels/color", "#CC0000");
Defines the appearance of the data labels, static labels for each point.
Sample usage:
level.setDataLabels(
new DataLabels()
.setColor("#FF0000")
);
dataLabels - The configuration of how the data labels should appear.TreemapPlotOptions.Level instance for convenient method chaining.public TreemapPlotOptions.Level setLayoutAlgorithm(TreemapPlotOptions.LayoutAlgorithm layoutAlgorithm)
level.setOption("layoutAlgorithm", );
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.Level instance for convenient method chaining.public TreemapPlotOptions.Level setLayoutStartingDirection(TreemapPlotOptions.LayoutStartingDirection layoutStartingDirection)
level.setOption("layoutStartingDirection", );
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.Level instance for convenient method chaining.public TreemapPlotOptions.Level setLevel(Number level)
level.setOption("level", 1);
Decides which level takes effect from the options set in the levels object.level - The level for which the particular options will affectTreemapPlotOptions.Level instance for convenient method chaining.Copyright © 2015. All Rights Reserved.