C#
SeriesList sList = new SeriesList(); sList.Gantt.Suffix = "일"; sList.AxisFactor.YAxis.Interval = 10; AxisMarker mks = new AxisMarker("플젝시작", new DateTime(2009, 1, 10)); AxisMarker mk = new AxisMarker("dead line", new DateTime(2009, 2, 10)); AxisMarker mk2 = new AxisMarker("Today", DateTime.Now); AxisArea are = new AxisArea("집중\r\n개발\r\n기간", new DateTime(2009, 1, 20), new DateTime(2009, 2, 2)); AxisTick extk = new AxisTick(); sList.AxisFactor.YAxis.ExtraTicks.Add(extk); for (int i = 0; i < 5; i++) sList.SeriesCollection[0].items[0].YStartDateTimeValue = new DateTime(2009, 1, 10); sList.SeriesCollection[0].items[1].YStartDateTimeValue = new DateTime(2009, 1, 15); sList.SeriesCollection[0].items[2].YStartDateTimeValue = new DateTime(2009, 1, 17); sList.SeriesCollection[0].items[3].YStartDateTimeValue = new DateTime(2009, 2, 10); sList.SeriesCollection[0].items[4].YStartDateTimeValue = new DateTime(2009, 2, 19); sList.SeriesCollection[0].items[0].Name = "프로젝트 제안"; sList.SeriesCollection[0].items[0].ItemColor = Color.Yellow; this.hHippoChart2.Titles.Label.ForeColor = Color.SteelBlue; |
VB
Dim sList As New SeriesList() sList.Gantt.Suffix = "일" sList.AxisFactor.YAxis.Interval = 10 Dim mks As New AxisMarker("플젝시작", New DateTime(2009, 1, 10)) Dim mk As New AxisMarker("dead line", New DateTime(2009, 2, 10)) Dim mk2 As New AxisMarker("Today", DateTime.Now) Dim are As New AxisArea("집중" & vbCr & vbLf & "개발" & vbCr & vbLf & "기간", New DateTime(2009, 1, 20), New DateTime(2009, 2, 2)) Dim extk As New AxisTick() sList.AxisFactor.YAxis.ExtraTicks.Add(extk) For i As Integer = 0 To 4 sList.SeriesCollection(0).items(0).YStartDateTimeValue = New DateTime(2009, 1, 10) sList.SeriesCollection(0).items(1).YStartDateTimeValue = New DateTime(2009, 1, 15) sList.SeriesCollection(0).items(2).YStartDateTimeValue = New DateTime(2009, 1, 17) sList.SeriesCollection(0).items(3).YStartDateTimeValue = New DateTime(2009, 2, 10) sList.SeriesCollection(0).items(4).YStartDateTimeValue = New DateTime(2009, 2, 19) sList.SeriesCollection(0).items(0).Name = "프로젝트 제안" sList.SeriesCollection(0).items(0).ItemColor = Color.Yellow Me.hHippoChart2.Titles.Label.ForeColor = Color.SteelBlue |
'Chart Type > Bar' 카테고리의 다른 글
Gantt Chart (0) | 2009.03.26 |
---|---|
Bar Chart using Shadow and Tight width (0) | 2009.03.21 |
100% FullStacked Bar chart in 3D using Gradation and Tight width (0) | 2009.03.18 |
100% FullStacked Bar chart using Dynamic width (0) | 2009.03.18 |
Stacked Bar chart in 3D using Tight width (0) | 2009.03.18 |