public class Options3D extends Configurable<Options3D>
Chart.setOptions3D(Options3D)
Example usage:
chart.setOptions3d(
new Options3d()
.setAlpha(50);
Options to render charts in 3 dimensions.
Note that this feature requires highcharts-3d.js| Constructor and Description |
|---|
Options3D() |
| Modifier and Type | Method and Description |
|---|---|
Options3D |
setAlpha(Number alpha)
Convenience method for setting the 'alpha' attribute of a 3d chart.
|
Options3D |
setBeta(Number beta)
Convenience method for setting the 'bets' attribute of a 3d chart.
|
Options3D |
setDepth(Number depth)
Convenience method for setting the 'depth' attribute of a 3d chart.
|
Options3D |
setEnabled(Boolean enabled)
Convenience method for setting the 'enabled' attribute of a 3d chart.
|
Options3D |
setFrame(Frame frame)
Convenience method for setting the 'frame' attribute of a 3d chart.
|
Options3D |
setViewDistance(Number viewDistance)
Convenience method for setting the 'viewDistance' option of a 3d chart.
|
getOptions, setOptionpublic Options3D setAlpha(Number alpha)
options3d.setOption("alpha", 0);
alpha - One of the two rotation angles for the chart. Defaults to 0.Options3D instance for convenient method chaining.public Options3D setBeta(Number beta)
options3d.setOption("beta", 0);
beta - One of the two rotation angles for the chart. Defaults to 0.Options3D instance for convenient method chaining.public Options3D setDepth(Number depth)
options3d.setOption("depth", 100);
depth - The total depth of the chart. Defaults to 100.Options3D instance for convenient method chaining.public Options3D setEnabled(Boolean enabled)
options3d.setOption("enabled", false);
enabled - Whether to render the chart using the 3D functionality. Defaults to false.Options3D instance for convenient method chaining.public Options3D setFrame(Frame frame)
Frame as well as its inner Frame.FramePanel class. Equivalent to:
options3d.setOption("frame", new Frame());
frame - An instance of the Frame class.
Provides the option to draw a frame around the charts by defining a bottom, front and back panel.Options3D instance for convenient method chaining.Frame,
Frame.FramePanelpublic Options3D setViewDistance(Number viewDistance)
options3d.setOption("viewDistance", 30);
viewDistance - Defines the distance the viewer is standing in front of the chart,
this setting is important to calculate the perspective effect in
column and scatter charts. It is not used for 3D pie charts. Defaults to 100.Options3D instance for convenient method chaining.Copyright © 2015. All Rights Reserved.