예제 #1
0
        public SalesByYearsData()
        {
            IList <DateTime> arguments = new List <DateTime>();

            for (int i = 0; i < values[0].Count; i++)
            {
                arguments.Add(StartDate.AddYears(i));
            }
            IList <double> sumByYears = new List <double>();

            foreach (IList <double> valuesByYear in values)
            {
                Data.Add(new DateTimeXYSeriesData(arguments, valuesByYear));
                sumByYears.Add(valuesByYear.Sum());
            }
            PieData = new PieSeriesData(categories, sumByYears);
        }
예제 #2
0
 public SecuritesByRiskAndTypes()
 {
     rating = new PieSeriesData(
         new List <string>()
     {
         "AA", "MBB+", "BBB", "BBB-", "NR"
     },
         new List <double>()
     {
         13, 7, 45, 20, 15
     }
         );
     security = new PieSeriesData(
         new List <string>()
     {
         "FRN", "FCB", "CIB", "IAB"
     },
         new List <double>()
     {
         16.0, 41.0, 25.0, 18.0
     }
         );
 }
예제 #3
0
 public BondPortfolioDiversification()
 {
     securitiesByTypes = new PieSeriesData(
         new List <string>()
     {
         "Stock", "Mutual Fund", "Bond"
     },
         new List <double>()
     {
         417360.00, 27414.32, 35682.00
     }
         );
     securitiesByRisk = new PieSeriesData(
         new List <string>()
     {
         "Income", "Growth", "Speculation", "Hedge"
     },
         new List <double>()
     {
         132826.00, 208816.0, 24700.00, 80114.00
     }
         );
 }