以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]甘特图的工作时间不连续  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=170626)

--  作者:chnfo
--  发布时间:2021/8/2 12:05:00
--  [求助]甘特图的工作时间不连续
工作分解的WBS,某些工作可能是不连续的,中间有停顿时间。甘特图控件可以实现,就是用这个
    .AddGanttSeries("任务四", New DateTime() {#1/22/2010#, #2/28/2010#}, New DateTime() {#2/12/2010#, #3/24/2010#})

(1)如果是代码来写,如何来画间断的横道?
(2)如何在甘特图控件中,将横道的字体的颜色设置可以这样
Dim bchart = chart.BaseControl
bchart.ChartLabels.DefaultLabelStyle.ForeColor = Color.Blue
但是底色怎么改?

--  作者:有点蓝
--  发布时间:2021/8/2 14:04:00
--  
1、画不了

With Chart.SeriesList
    .clear
    .AddGanttSeries("任务一", #1/1/2010#, #3/9/2010#)
    Chart.SeriesList(0).FillColor = Color.red
    .AddGanttSeries("任务二", #1/23/2010#, #2/14/2010#)
    Chart.SeriesList(1).FillColor = Color.blue