public abstract class ProportionalDataLabels<T extends ProportionalDataLabels> extends BaseDataLabels<T>
FunnelPlotOptions.setFunnelDataLabels(FunnelDataLabels)
or PiePlotOptions.setPieDataLabels(PieDataLabels) methods).
Example usage:
chart.setPiePlotOptions(
new PiePlotOptions()
.setPieDataLabels(
new ProportionalDataLabels()
.setEnabled(true)
.setConnectorColor("#FF0000)
.setConnectorWidth(4.0)
)
);
Labels.Align, Labels.VerticalAlign| Constructor and Description |
|---|
ProportionalDataLabels() |
| Modifier and Type | Method and Description |
|---|---|
T |
setConnectorColor(String connectorColor)
Convenience method for setting the 'connectorColor' option for the data labels.
|
T |
setConnectorPadding(Number connectorPadding)
Convenience method for setting the 'connectorPadding' option for the data labels.
|
T |
setConnectorWidth(Number connectorWidth)
Convenience method for setting the 'connectorWidth' option for the data labels.
|
T |
setDistance(Number distance)
Convenience method for setting the 'distance' option for the data labels.
|
getFormatter, setBackgroundColor, setBorderColor, setBorderRadius, setBorderWidth, setFormat, setFormatter, setPadding, setShadow, setUseHTMLsetAlign, setColor, setEnabled, setRotation, setStyle, setVerticalAlign, setX, setYgetOptions, setOptionpublic T setConnectorColor(String connectorColor)
labels.setOption("connectorColor", "#CC0000");
The color of the line connecting the data label to the pie slice. Defaults to #606060.connectorColor - The color of the line connecting the data label to the pie slice.ProportionalDataLabels instance for convenient method chaining.public T setConnectorPadding(Number connectorPadding)
labels.setOption("connectorPadding", 2.0);
The distance from the data label to the connector. Defaults to 5.connectorPadding - The The distance from the data label to the connector.ProportionalDataLabels instance for convenient method chaining.public T setConnectorWidth(Number connectorWidth)
labels.setOption("connectorWidth", 2.0);
The width of the line connecting the data label to the pie slice. Defaults to 1.connectorWidth - The width of the line connecting the data label to the pie slice.ProportionalDataLabels instance for convenient method chaining.public T setDistance(Number distance)
labels.setOption("distance", 24);
The distance of the data label from the pie's edge. Negative numbers put the data label
on top of the pie slices. Connectors are only shown for data labels outside the pie.
Defaults to 30.distance - The distance of the data label from the pie's edge.ProportionalDataLabels instance for convenient method chaining.Copyright © 2015. All Rights Reserved.