Class PieChartOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDonutHoleRadius
(double donusHoleRadius) A number between0
and1
that represents the center hole's radius.void
setLabelRadius
(double radius) A number between0
and1
that represents the position of the labels from the center.void
setTilt
(double tilt) A number between0
and1
that represents the pie chart's percentage of tilt.void
showLabels
(boolean show) Determines whether or not to show labels that annotate pie chart slices.Methods inherited from class com.orchestranetworks.addon.dqid.chart.Options
setColors, setLegendPosition, setNumberOfColumnsInTheLegend, showGrid, showLegend, showTooltip
-
Constructor Details
-
PieChartOptions
public PieChartOptions()
-
-
Method Details
-
showLabels
public void showLabels(boolean show) Determines whether or not to show labels that annotate pie chart slices.Default value:
false
. -
setLabelRadius
public void setLabelRadius(double radius) A number between0
and1
that represents the position of the labels from the center.A value of
0
means the labels are drawn at the very center of the pie chart, potentially juxtaposing with each other.
A value of1
means the labels are drawn at the edge of the pie chart.
Default value:1
. -
setTilt
public void setTilt(double tilt) A number between0
and1
that represents the pie chart's percentage of tilt.A value of
0
represents a completely horizontal pie chart, reducing the view to a line.
A value of1
represents a fully vertical view of the pie chart.
Default value:1
. -
setDonutHoleRadius
public void setDonutHoleRadius(double donusHoleRadius) A number between0
and1
that represents the center hole's radius.This can be used to create donut hole pie charts.
A value of0
represents a classical pie chart, with no hole in the center.
A value1
represents a pie chart with the hole having the same radius as the pie chart. The pie chart will not be visible if you use a value of 1.
Note: The radius is relative to the size of container and not the pie chart. In certain circumstances, such as when showing the legend or when showing labels, the pie chart will adapt to a smaller size so as to accommodate the extra items. In this particular circumstance a high donut hole radius may render the pie chart invisible.
Default value:0
.
-