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

如何将PlantUML甘特图里程碑文本置于菱形左侧?

PlantUML甘特图:将里程碑文本放置在菱形左侧

可以实现这个需求,PlantUML甘特图支持通过left关键字指定里程碑文本显示在图形左侧,直接修改代码即可:

@startgantt
[Prototype design] lasts 1 weeks
then [Prototype completed]  lasts 4 days
[End Prototype completed] happens at [Prototype completed]'s end
then [Test prototype] lasts 5 days
[End Test prototype] happens at [Test prototype]'s end left

[Prototype completed] is deleted
[End Prototype completed] is deleted
@endgantt

只需在目标里程碑的定义末尾添加left关键字,就能让“End Test prototype”文本显示在最后一个菱形里程碑的左侧,从而缩减甘特图的横向宽度,提升可读性。

内容的提问来源于stack exchange,提问作者a.t.

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.20 00:05:20