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
相关产品推荐
相关产品推荐

