public class Pane extends Configurable<Pane>
Chart.setPane(Pane) method.
Note: many of the pane options are only available if the highcharts-more.js script is included in your GWT module. E.g.:
<script type="text/javascript" src="js/highcharts-more.js"></script>| Constructor and Description |
|---|
Pane() |
| Modifier and Type | Method and Description |
|---|---|
Pane |
setBackground(PaneBackground... paneBackgrounds)
Convenience method for setting the "background" option of the pane.
|
Pane |
setCenter(Number centerX,
Number centerY)
Convenience method for setting the "center" option of the pane.
|
Pane |
setCenter(String centerX,
String centerY)
Convenience method for setting the "center" option of the pane.
|
Pane |
setEndAngle(Number endAngle)
Convenience method for setting the 'endAngle' option of the pane.
|
Pane |
setSize(Number size)
Convenience method for setting the 'size' option of the pane.
|
Pane |
setSize(String size)
Convenience method for setting the 'size' option of the pane.
|
Pane |
setStartAngle(Number startAngle)
Convenience method for setting the 'startAngle' option of the pane.
|
getOptions, setOptionpublic Pane setBackground(PaneBackground... paneBackgrounds)
chart.setPane(
newPane()
.setBackground(
new PaneBackground()
.setBackgroundColor(#333)
)
);
paneBackgrounds - An Instance of the PaneBackground class that has been set using its supplied methods.Pane instance for convenient method chaining.public Pane setCenter(Number centerX, Number centerY)
pane.setOption("center", [50, 50]);
The center of a polar chart or angular gauge, given as an array of [x, y] positions.
Positions is given as integers that transform to pixels. Defaults to ['50%', '50%'].
Note: This method is for denoting the center of the pane as a pair of (x, y) coordinates.
If you instead want to represent the center as a percentage of the plot area size,
use this setCenter(String, String).centerX - The x value of the center of the pane in pixels.centerY - The y value of the center of the pane in pixels.Pane instance for convenient method chaining.public Pane setCenter(String centerX, String centerY)
pane.setOption("center", ['50%', '50%']);
The center of a polar chart or angular gauge, given as an array of [x, y] positions.
Positions are given as percentages of the plot area size. Defaults to ['50%', '50%'].
Note: this method is for denoting the location of the center as a string. If you instead
want to represent the center as a pair of (x, y) coordinates, use this setCenter(Number, Number).centerX - The x coordinate of the center of the pane a percentage of the plot size area.centerY - The x coordinate of the center of the pane a percentage of the plot size area.Pane instance for convenient method chaining.public Pane setStartAngle(Number startAngle)
pane.setOption("startAngle", 90);
The start angle of the polar X axis or gauge axis, given in degrees where 0 is north. Defaults to 0.startAngle - The start angle fo the polar X axis of the chart.Pane instance for convenient method chaining.public Pane setEndAngle(Number endAngle)
pane.setOption("endAngle", 180);
The end angle of the polar X axis or gauge value axis, given in degrees where 0 is north. Defaults to startAngle + 360.endAngle - The end angle of the polar X axis or gauge value axis.Pane instance for convenient method chaining.public Pane setSize(Number size)
pane.setOption("size", 140);
The size of the pane, either as a number defining pixels, or a percentage defining a percentage of the plot are.
Defaults to 85%.
Note that this method is used for defining the size as a number. For defining the size as a percentage of the plot
area use setSize(String)size - A Number defining the size of the pane in pixels.Pane instance for convenient method chaining.setSize(String)public Pane setSize(String size)
pane.setOption("size", "90%");
The size of the pane, either as a number defining pixels, or a percentage defining a percentage of the plot are.
Defaults to 85%.
Note that this method is used for defining the size as a percentage of the plot area.
For defining the size as a specific number of pixels use setSize(Number)size - A String defining the size of the pane in pixels.Pane instance for convenient method chaining.setSize(String)Copyright © 2015. All Rights Reserved.