You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Anychart甘特图右侧内容被截断,寻求技术解决方案

Anychart甘特图右侧内容截断问题求助

我在UI开发中使用Anychart组件,时间线数据采用毫秒级时间戳格式,制作甘特图时发现图表右侧内容被截断。

问题截图:
问题截图

代码示例

<script type="text/javascript">

    anychart.onDocumentReady(function () {
        var data =  [

          {
            id: "1_1",
            name: "Analysis",
            actualStart: new Date(1664849423000),
            actualEnd: new Date(1664849745000),
            progressValue: "100%"
          },
          {
            id: "1_2",
            name: "Design",
            actualStart: new Date(1664767925000),
            actualEnd: new Date(1664769005000)
          },....]
// create a chart
    var chart = anychart.ganttProject();
    // set the data
    //chart.data(treeData);
    chart.data(data, 'as-table');
    // set the container id
    chart.container("chart-div");
    //chart.xScroller(true);
    chart.draw();
    // fit elements to the width of the timeline
    chart.fitAll();
    });
</script>

可复现该问题的场景已搭建完成,恳请协助解决右侧内容截断的问题。

内容的提问来源于stack exchange,提问作者May

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 09:30:46