com.vaadin.flow.component.charts.model.
Class Pane
All Implemented Interfaces:
Applies only to polar charts and angular gauges. This configuration object holds general options for the combined X and Y axes set. Each xAxis or yAxis can reference the pane by index.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBackground
(Background background) Adds background to the background array
String[]
getSize()
void
removeBackground
(Background background) Removes first occurrence of background in background array
void
setBackground
(Background... background) An object, or array of objects, for backgrounds.
void
The center of a polar chart or angular gauge, given as an array of [x, y] positions.
void
void
setEndAngle
(Number endAngle) The end angle of the polar X axis or gauge value axis, given in degrees where 0 is north.
void
The size of the pane, either as a number defining pixels, or a percentage defining a percentage of the plot are.
void
setStartAngle
(Number startAngle) The start angle of the polar X axis or gauge axis, given in degrees where 0 is north.
-
Constructor Details
-
Pane
public Pane() -
Pane
-
-
Method Details
-
getBackground
See Also:
-
setBackground
An object, or array of objects, for backgrounds.
-
addBackground
Adds background to the background array
Parameters:
background
- to addSee Also:
-
removeBackground
Removes first occurrence of background in background array
Parameters:
background
- to removeSee Also:
-
setCenter
The center of a polar chart or angular gauge, given as an array of [x, y] positions. Positions can be given as integers that transform to pixels, or as percentages of the plot area size.
Defaults to: ["50%", "50%"]
-
getEndAngle
See Also:
-
setEndAngle
The end angle of the polar X axis or gauge value axis, given in degrees where 0 is north. Defaults to startAngle + 360.
-
getSize
See Also:
-
setSize
The size of the pane, either as a number defining pixels, or a percentage defining a percentage of the plot are.
Defaults to: 85%
-
getStartAngle
See Also:
-
setStartAngle
The start angle of the polar X axis or gauge axis, given in degrees where 0 is north. Defaults to 0.
-
setCenter
-
getCenter
-