LoginSignup
3
5

Pythonによるガントチャート生成ライブラリ

Last updated at Posted at 2019-10-14

2024.5.25追記:このライブラリは別プロジェクトに引き継ぎましたので、こちらをご利用ください
https://github.com/usop4/elegantt/

似たようなのは探せばいくらでもありますが、こういうやつです。

import genGanttChart

gchart = GanttChart( (720, 320),(255,255,255) )
gchart.draw_calendar()
gchart.draw_campain("2019-10-15","2019-10-18","こんにちは")
gchart.draw_campain("2019-10-20","2019-10-23","こんにちは")
gchart.draw_campain("2019-10-24","2019-10-30","こんにちは")
gchart.draw_campain("2019-10-28","2019-10-30","こんにちは")
gchart.draw_campain("2019-10-29","2019-10-30","こんにちは")
gchart.show()
gchart.save("test.png")

tmp2f6nw42s.png

ポイント還元ポータルpokanpoという、キャッシュレスのポイント還元の開始時期と終了時期が見やすいサイトを作ろうと思って書き始めました。サイトのデザインに合わせて、こんな感じで色やサイズなども調整できます。

スクリーンショット 2019-10-14 14.20.37.png

PythonのPillowというライブラリとNoto Sansというフォントを使ってます。

詳しくはGithubで。

2024.5.25追記:このライブラリは別プロジェクトに引き継ぎましたので、こちらをご利用ください

3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5