Class DataUtilities

java.lang.Object
org.jfree.data.DataUtilities

public abstract class DataUtilities
extends Object
Utility methods for use with some of the data classes (but not the datasets, see DatasetUtilities).
  • Constructor Details

    • DataUtilities

      public DataUtilities()
  • Method Details

    • getCumulativePercentages

      public static KeyedValues getCumulativePercentages​(KeyedValues data)
      Returns a KeyedValues instance that contains the cumulative percentage values for the data in another KeyedValues instance.

      The percentages are values between 0.0 and 1.0 (where 1.0 = 100%).

      Parameters:
      data - the data.
      Returns:
      The cumulative percentages.