태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

티스토리 툴바




C#

 
            SeriesList sList = new SeriesList();
            sList.ChartType = ChartType.Pie;
            sList.Margin = 30;

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

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

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

            this.hHippoChart1.LegendBox.Visible = false;
            this.hHippoChart1.Titles.Label.ForeColor = Color.SteelBlue;
            this.hHippoChart1.DesignType = ChartDesignType.Simple;
            this.hHippoChart1.SeriesListDictionary.Add(sList);
            this.hHippoChart1.DrawChart();    


VB

 Dim sList As New SeriesList()
sList.ChartType = ChartType.Pie
sList.Margin = 30

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

Me.hHippoChart1.LegendBox.Visible = False
Me.hHippoChart1.Titles.Label.ForeColor = Color.SteelBlue
Me.hHippoChart1.DesignType = ChartDesignType.Simple
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.DrawChart()

저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

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

Pie chart using Transparency and Pie3DDepth in 3D  (0) 2009/04/03
Pie chart in 3D  (0) 2009/04/03
Pie chart using Percent_Name and Legend  (0) 2009/04/03
Pie chart using margin and TextLocation-outer  (0) 2009/04/03
Pie chart using margin and display-figures  (0) 2009/04/03
Default Pie chart  (0) 2009/04/03

♠ 이 글이 유용하셨다면 '히포차트 스토리'를 구독하세요 ^.^ ==> Add to Google

♠ 본 블로그에서는 '나눔글꼴'을 사용하고 있습니다 ==> 글꼴설치하기

Posted by 니오히뽀

트랙백 주소 : http://hippochart.tistory.com/trackback/116 관련글 쓰기

댓글을 달아 주세요



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