【问题标题】:How can I draw a Gantt chart in Google Chart Tools?如何在谷歌图表工具中绘制甘特图?
【发布时间】:2013-12-28 08:07:14
【问题描述】:

我正在尝试使用 Google 图表工具实现甘特图,但我在 Google 中没有找到正确的选项。我该怎么做?

【问题讨论】:

    标签: google-visualization


    【解决方案1】:

    似乎没有开箱即用的甘特图控件。

    https://google-developers.appspot.com/chart/interactive/docs/gallery

    但是,您可以使用 Google Chart Tool API 创建甘特图,请参见:

    http://jsfiddle.net/2jfy6/2/

    代码

    <img  
    
    title="Gantt Chart" 
    src="http://chart.apis.google.com/chart?cht=bhs&amp;
    chs=500x300&amp;
    chd=t:0,0,0,0,0,0|10,20,30,40,60,75|10,20,40,20,30,19&amp;
    chxt=x,y&amp;
    chxl=1:sad|Testing&amp;
    chxr=0,0,100|1,0,100&amp;
    chds=0,100&amp;
    chco=DC143C|DC143C,ffffff00&amp;
    chg=20,50&amp;
    chbh=20,10&amp;
    chtt=Gantt Chart&amp;
    chts=000000,25&amp;
    chdl=Project Test&amp;chdlp=b" 
    alt="Google Charts Gantt Chart"
    width="500" 
    height="300" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-20
      • 1970-01-01
      • 2015-11-22
      • 1970-01-01
      • 2021-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多