Skip to main content

Draw Gannt Chart with svg format

Project description

Installation

$ pip install git+https://github.com/EdwardHong0627/gannt_chart

Importing

from ganntchart.ganntchart import GanntChart

Usage

  • First of all, we need to initialize the blank gannt chart with specified number of machine, total length of gannt chart, and the sale size.

    i.e.,
result =GanntChart(num_of_machine=2, 
                   total_length=50, 
                   scale=20)


The statement above means that result is an instance of object Gannt Chart.

  • Second we can call the add_job function to append a job information:
result.add_job(job_name='J_1', 
               machine=0, 
               starting_time=0, 
               processing_time=5)

\

  • you can also assign the fill-color and stroke-color of jobs in Gannt chart by adding arg in the add job function as below:
result.add_job(job_name='J_1', 
               machine=0, 
               starting_time=0, 
               processing_time=5,
               fill= '#00FF00',
               stroke= '#FF00FF')

\

  • Finally, we can call save_to_file function to save our Gannt chart as a svg_file
    result.save_to_file(file_name='result')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ganntchart-1.2.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ganntchart-1.2.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file ganntchart-1.2.4.tar.gz.

File metadata

  • Download URL: ganntchart-1.2.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.1

File hashes

Hashes for ganntchart-1.2.4.tar.gz
Algorithm Hash digest
SHA256 bc6883ec9d79b7b0aca9080bc938a23ef7abb90d726c62bc2d737800a1dd0046
MD5 820aaa9be71d3a562913b7ac63e9ceed
BLAKE2b-256 3b02aa6fa7eca6cc60ebdf0214b65ea2ceef7d2aca1798d274c4ac45811ed895

See more details on using hashes here.

File details

Details for the file ganntchart-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: ganntchart-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.1

File hashes

Hashes for ganntchart-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e7b0b730d0ac6258e1cd8bb7d1446959fdff8fb4d82f67d5ada42ed25d1f43e9
MD5 5707fcf69907ee19b01080d74acf0357
BLAKE2b-256 82f93d248912ec31db002f34c1659565a7f191c317336be505dcf9fe0c3e9f72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page