-
Notifications
You must be signed in to change notification settings - Fork 20
Traditional Chinese Roadmap Code
CS Goh edited this page Jan 31, 2023
·
1 revision
from roadmapper.roadmap import Roadmap
from roadmapper.timelinemode import TimelineMode
roadmap = Roadmap(800, 700, colour_theme="rainbow-unicode.json", show_marker=True)
roadmap.set_title("戰略路線圖 2023")
roadmap.set_subtitle("瑪塔里奇太陽科技有限公司")
roadmap.set_timeline(
TimelineMode.QUARTERLY, "2023-01-01", 4, timeline_locale="zh_TW_timeline_settings.json"
)
roadmap.set_footer("由 Roadmapper 生成")
group = roadmap.add_group("人員流程")
task = group.add_task("制定包容戰略", "2023-01-01", "2023-04-30")
task.add_parallel_task("促進多樣性、公平性和包容性", "2023-05-01", "2023-12-30")
group.add_task("實施可持續發展計劃", "2023-03-01", "2023-11-30")
group = roadmap.add_group("工作流程")
group.add_task("實施業務改進計劃", "2023-02-01", "2023-11-30")
task = group.add_task("自動化流程", "2023-07-01", "2023-12-30")
task.add_milestone("30%自動化 ", "2023-8-01")
task.add_milestone("60%自動化 ", "2023-12-01")
group = roadmap.add_group("工具流程")
group.add_task("實施工具選擇策略", "2023-01-01", "2023-04-30")
group.add_task("工具選擇", "2023-02-01", "2023-08-30")
task = group.add_task("集中工具管理", "2023-04-01", "2023-11-30")
task.add_milestone("系統集中完成", "2023-12-01")
roadmap.draw()
roadmap.save("zh_TW-roadmap.png")
rainbow-unicode.json:
{
"theme": "RAINBOW",
"settings": {
"background": {
"background_fill_colour": "#FFFFFF"
},
"title": {
"title_font": "fonts/SourceHanSerifTC-Regular.otf",
"title_font_size": 26,
"title_font_colour": "#000000",
"subtitle_font": "fonts/SourceHanSerifTC-Regular.otf",
"subtitle_font_size": 18,
"subtitle_font_colour": "#000000"
},
"timeline": {
"timeline_year_font": "fonts/SourceHanSerifTC-Regular.otf",
"timeline_year_font_size": 14,
"timeline_year_font_colour": "#FFFFFF",
"timeline_year_fill_colour": "#4C5B5C",
"timeline_item_font": "fonts/SourceHanSerifTC-Regular.otf",
"timeline_item_font_size": 12,
"timeline_item_font_colour": "#FFFFFF",
"timeline_item_fill_colour": "#4C5B5C"
},
"marker": {
"marker_font": "fonts/SourceHanSerifTC-Regular.otf",
"marker_font_size": 12,
"marker_font_colour": "#000000",
"marker_line_colour": "#000000"
},
"group": {
"group_font": "fonts/SourceHanSerifTC-Bold.otf",
"group_font_size": 14,
"group_font_colour": "#FFFFFF",
"group_fill_colour": "#FCA311"
},
"task": {
"task_font": "fonts/SourceHanSerifTC-Regular.otf",
"task_font_size": 12,
"task_font_colour": "#000000",
"task_fill_colour": "#8FBC94",
"task_style": "rectangle"
},
"milestone": {
"milestone_font": "fonts/SourceHanSerifTC-Regular.otf",
"milestone_font_size": 12,
"milestone_font_colour": "#000000",
"milestone_fill_colour": "#3D6642"
},
"footer": {
"footer_font": "fonts/SourceHanSerifTC-Regular.otf",
"footer_font_size": 12,
"footer_font_colour": "#000000"
}
}
}
zh_TW_timeline_settings.json:
{
"locale": "zh_TW",
"settings": {
"year": {
"text": "{0} 年",
"generic_text": "第{0}年"
},
"half_year": {"text": "第{0}個半年"},
"quarter": {"text": "第{0}季度"},
"month": {
"text": "{0}",
"generic_text": "{0}月"
},
"week": {
"text": "{1}{0}",
"generic_text": "第{0}周"
}
}
}