我也尝试在 AWS Quicksight 中创建甘特图,但 AWS Quicksight 中没有内置甘特图。
但是,我能够使用 Plotly express 构建甘特图。
https://plotly.com/python/gantt/
对于您的用例,您可以使用以下代码将您的居住历史绘制为甘特图
import plotly.express as px
import pandas as pd
df = pd.DataFrame([
dict(Country="USA", Start='2009-01-01', Finish='2009-02-28'),
dict(Country="Canada", Start='2009-03-05', Finish='2009-04-15'),
dict(Country="France", Start='2009-02-20', Finish='2009-05-30')
])
fig = px.timeline(df, x_start="Start", x_end="Finish", y="Country", color="Country")
fig.show()
Residential History