public void AddSeries(string seriesName, decimal value)
 {
     var dataset = this.DataSets.Where(c => c.SeriesName == seriesName).FirstOrDefault();
         if(dataset == null)
         {
             dataset = new ChartDataSet() { SeriesName = seriesName };
             this.DataSets.Add(dataset);
         }
         dataset.Sets.Add(new ChartDataSetDetail()
         {
             Value = value
         });
 }
        public void AddSeries(string seriesName, decimal value)
        {
            var dataset = this.DataSets.Where(c => c.SeriesName == seriesName).FirstOrDefault();

            if (dataset == null)
            {
                dataset = new ChartDataSet()
                {
                    SeriesName = seriesName
                };
                this.DataSets.Add(dataset);
            }
            dataset.Sets.Add(new ChartDataSetDetail()
            {
                Value = value
            });
        }