Package org.jCharts.chartData.processors
Class PieChartDataProcessor
java.lang.Object
org.jCharts.chartData.processors.PieChartDataProcessor
Utility class to process the PieChartDataSet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getPercentageOfPie
(int index) Returns percentage of pie(360 degrees) data point at specified index.void
This method should do a single pass through the data set and calculate all needed values, such as: min, max, sum, etc...
-
Field Details
-
iPieChartDataSet
-
sumOfData
private double sumOfData
-
-
Constructor Details
-
PieChartDataProcessor
Constructor- Parameters:
iPieChartDataSet
-
-
-
Method Details
-
processData
public void processData()This method should do a single pass through the data set and calculate all needed values, such as: min, max, sum, etc... so that we can do this in one pass through the data. Rather than once for each. -
getPercentageOfPie
public double getPercentageOfPie(int index) Returns percentage of pie(360 degrees) data point at specified index.- Parameters:
index
-- Returns:
- double
-