Skip to content

ShumaoHou/TimelineCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimelineCreator

This is a Creator for Timeline or Gantt by Python. ——2022.05.18

Use vis-timeline to draw the chart. ——2022.05.25

Demo chart

demo1

Getting Started

CMD run this:

python mk_data.py
python mk_html.py
start  ./dist/timeline_chart.html

How to create a Timeline HTML with your data:

mk_data.py can create a temporary data.json file to debug.

Otherwise, you can create a similar file or python dict like that.

Your data should like this:

data = {
    "groups": [
        {"id": 1, "content": "com.test.demo1"},
        {"id": 2, "content": "com.test.demo2"}
    ],
    "items": [
        {
            'group': 1,
            'content': 'test group 1',
            'start': ms_str_2_date("1652953734"),
            'end': ms_str_2_date("1652963734")
        },
        {
            'group': 2,
            'content': 'test group 2',
            'start': ms_str_2_date("1652954734"),
            'end': ms_str_2_date("1652973734")
        },
    ]
}

About

This is a Creator for Timeline or Gantt by Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published