예제 #1
0
        void ShowChart1()
        {
            var data = new ArrayList();

            data.Add(new { Product = "衬衫", Sale = 5, Inc = 20 });
            data.Add(new { Product = "羊毛衫", Sale = 50, Inc = 60 });
            data.Add(new { Product = "裤子", Sale = 15, Inc = 80 });
            data.Add(new { Product = "高跟鞋", Sale = 25, Inc = 120 });
            data.Add(new { Product = "袜子", Sale = 20, Inc = 300 });

            var series = new List <Serie>();

            series.Add(new Serie {
                Name = "销量", DataField = "Sale", Type = SerieType.Bar
            });
            Chart1.Show(data, "Product", series, "销售情况", null);
        }