public CategorySeriesHandler(RootHandler root)
 {
   base.\u002Ector();
   CategorySeriesHandler categorySeriesHandler = this;
   this.root = root;
   this.values = new DefaultKeyedValues();
 }
 public DefaultPieDataset(KeyedValues data)
 {
   DefaultPieDataset defaultPieDataset = this;
   if (data == null)
   {
     string str = "Null 'data' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.data = new DefaultKeyedValues();
     for (int i = 0; i < data.getItemCount(); ++i)
       this.data.addValue(data.getKey(i), data.getValue(i));
   }
 }
 public DefaultPieDataset()
 {
   DefaultPieDataset defaultPieDataset = this;
   this.data = new DefaultKeyedValues();
 }
 public static KeyedValues getCumulativePercentages(KeyedValues data)
 {
   if (data == null)
   {
     string str = "Null 'data' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     DefaultKeyedValues defaultKeyedValues = new DefaultKeyedValues();
     double num1 = 0.0;
     for (int i = 0; i < data.getItemCount(); ++i)
     {
       Number number = data.getValue(i);
       if (number != null)
         num1 += number.doubleValue();
     }
     double num2 = 0.0;
     for (int i = 0; i < data.getItemCount(); ++i)
     {
       Number number = data.getValue(i);
       if (number != null)
         num2 += number.doubleValue();
       defaultKeyedValues.addValue(data.getKey(i), (Number) new Double(num2 / num1));
     }
     return (KeyedValues) defaultKeyedValues;
   }
 }