Features/Balloon
Balloon using Line and IsShadow
리바이 병장
2009. 3. 22. 19:14
C#
SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Line;
Random r = new Random();
for (int i = 0; i < 1; i++)
{
Series sr = new Series();
sr.Points.Width = 6;
sr.Points.PointType = PointType.FillTriangle;
for (int x = 0; x < 5; x++)
{
SeriesItem item = new SeriesItem();
item.Name = "item" + x.ToString();
item.YValue = r.Next(50);
if (x == 1)
{
item.Balloon = new Balloon();
item.Balloon.Line.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
item.Balloon.Line.LineWidth = 2;
item.Balloon.IsShadow = false;
item.Balloon.Label.Text = " 풍선 도움말의 다양한\r\n 기능을 소개합니다.\r\n많은 사용 바래요^^";
}
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.Line
Dim r As New Random()
For i As Integer = 0 To 0
Dim sr As New Series()
sr.Points.Width = 6
sr.Points.PointType = PointType.FillTriangle
For x As Integer = 0 To 4
Dim item As New SeriesItem()
item.Name = "item" & x.ToString()
item.YValue = r.[Next](50)
If x = 1 Then
item.Balloon = New Balloon()
item.Balloon.Line.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot
item.Balloon.Line.LineWidth = 2
item.Balloon.IsShadow = False
item.Balloon.Label.Text = " 풍선 도움말의 다양한" & vbCr & vbLf & " 기능을 소개합니다." & vbCr & vbLf & "많은 사용 바래요^^"
End If
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() |
사업자 정보 표시펼치기/접기
히포차트 | 하영대 | 경기도 성남시 수정구 복정동 631-5 401 | 사업자 등록번호 : 129-34-55719 | TEL : 031-751-6673 | Mail : hippochart@gmail.com | 통신판매신고번호 : 제 2010-경기성남-1203호 | 사이버몰의 이용약관
바로가기