Default Bar chart

Chart Type/Bar 2009. 3. 18. 19:58





C#

 
            SeriesList sList = new SeriesList();
            sList.ChartType = ChartType.Bar;

            Random r = new Random();
            for (int i = 0; i < 4; i++)
            {
                Series sr = new Series(); 

                for (int x = 0; x < 4; x++)
                {
                    SeriesItem item = new SeriesItem();
                    item.YValue = r.Next(100);
                    item.Name = "item" + x.ToString();

                    sr.items.Add(item);
                }
                sList.SeriesCollection.Add(sr);
            }

            this.hHippoChart2.Titles.Label.ForeColor = Color.SteelBlue;  
            this.hHippoChart2.DesignType = ChartDesignType.Simple;
            this.hHippoChart2.SeriesListDictionary.Add(sList);
            this.hHippoChart2.DrawChart();  


VB

 Dim sList As New SeriesList()
sList.ChartType = ChartType.Bar

Dim r As New Random()
For i As Integer = 0 To 3
    Dim sr As New Series()
   
    For x As Integer = 0 To 3
        Dim item As New SeriesItem()
        item.YValue = r.[Next](100)
        item.Name = "item" & x.ToString()
       
        sr.items.Add(item)
    Next
    sList.SeriesCollection.Add(sr)
Next

Me.hHippoChart2.Titles.Label.ForeColor = Color.SteelBlue
Me.hHippoChart2.DesignType = ChartDesignType.Simple
Me.hHippoChart2.SeriesListDictionary.Add(sList)
Me.hHippoChart2.DrawChart()



사업자 정보 표시
히포차트 | 하영대 | 경기도 성남시 수정구 복정동 631-5 401 | 사업자 등록번호 : 129-34-55719 | TEL : 031-751-6673 | Mail : hippochart@gmail.com | 통신판매신고번호 : 제 2010-경기성남-1203호 | 사이버몰의 이용약관 바로가기

'Chart Type > Bar' 카테고리의 다른 글

Stacked Bar chart  (0) 2009.03.18
Bar chart in 3D using Transparency and Dark and Tight  (0) 2009.03.18
Bar chart in 3D using Gradation and Tight  (0) 2009.03.18
Bar chart in 3D  (0) 2009.03.18
Bar chart using Gradation and Tight  (0) 2009.03.18

Posted by 리바이 병장
,


/* 다음 웹인사이드 로그 분석*/