New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ganntchart

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ganntchart

Draw Gannt Chart with svg format

  • 1.2.4
  • PyPI
  • Socket score

Maintainers
1

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')

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc