Home 소개       다운로드       온라인 설명서      주식/코인 차트    Q & A     Blog    

통계 아이템 디자인하기







통계 아이템은 기본 디자인 외에 라벨과 라인 등을 자유롭게 디자인하여 표시할 수 있습니다.




데이터 통계 아이템 표시  통계 아이템 디자인하기  통계아이템 - 합계, 분산 표시하기  통계아이템 - 표준 오차  


C#
 
SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Line;

sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.StandardDeviation].Visible = true;
sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.StandardDeviation].Name = "표준편차";
sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.StandardDeviation].Line.LineColor = Color.Black;
sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.StandardDeviation].Line.LineWidth = 3;
sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.StandardDeviation].Line.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.StandardDeviation].Label.Text = "표준편차\r\n";
sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.StandardDeviation].Label.Font = new Font("굴림", 11, FontStyle.Regular);

sList.GraphArea.Grid.GridDirection = GridDirection.Vertical;

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

for(int x = 0; x < 100; x++)
{
SeriesItem item = new SeriesItem();
item.Name = x.ToString();
item.YValue = r.Next(28, 45) * 1.2 * x;

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

this.hHippoChart1.LegendBox.Header.NameLabel.Text = "표준편차범례";
this.hHippoChart1.Designer.BackColor = Color.Black;
this.hHippoChart1.DesignType = ChartDesignType.Simple;
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.DrawChart();


VB
 
Dim sList As New. SeriesList()
sList.ChartType = ChartType.Line

sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.StandardDeviation).Visible = True
sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.StandardDeviation).Name = "표준편차"
sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.StandardDeviation).Line.LineColor = Color.Black
sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.StandardDeviation).Line.LineWidth = 3
sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.StandardDeviation).Line.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid
sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.StandardDeviation).Label.Text = "표준편차" & vbCr & vbLf
sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.StandardDeviation).Label.Font = New Font("굴림", 11, FontStyle.Regular)

sList.GraphArea.Grid.GridDirection = GridDirection.Vertical

Dim r As New. Random()
For i As Integer = 0 To 0
Dim sr As New. Series()
sr.Points.Width = 0

For x As Integer = 0 To 99
Dim item As New. SeriesItem()
item.Name = x.ToString()
item.YValue = r.[Next](28, 45) * 1.2 * x

sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next

Me.hHippoChart1.LegendBox.Header.NameLabel.Text = "표준편차범례"
Me.hHippoChart1.Designer.BackColor = Color.Black
Me.hHippoChart1.DesignType = ChartDesignType.Simple
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.DrawChart()



※ 히포차트 샘플 코드는 버전별로 상이한 결과를 나타낼 수 있습니다.

이 코드 관련 문의 사항은 페이스북 리플을 달아주시거나 아래 이메일로 이 페이지 주소와 함께 문의주세요.

helpdesk@hippochart.com





Copyright © 2009-2018 투데이트레이딩. Inc.  All Rights Reserved.