【问题标题】:Anygantt Project Plan Change ScaleAnygantt项目计划变更量表
【发布时间】:2016-12-26 19:47:19
【问题描述】:

是否可以在 Anychart 的 ganttProject 图中设置时间线的比例 - 例如,只有四分之一?我在文档中的任何地方都找不到它。

【问题讨论】:

    标签: anychart


    【解决方案1】:

    您可以使用 header() 方法自定义时间轴标题: https://api.anychart.com/7.12.0/anychart.core.gantt.TimelineHeader

    var timeline = chart.getTimeline();
    var currentHeader = timeline.header();
    

    时间轴标题支持级别自定义,例如:

    currentHeader.lowLevel(false);
    currentHeader.midLevel(true);
    currentHeader.topLevel(true);
    

    http://jsfiddle.net/anycharts/ou032nye/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多