name: data-viz-suite description: 資料視覺化套件 - 企業級BI工具,支援圖表生成、資料包表、互動式儀表盤。支援 Plotly/Matplotlib/Seaborn 多種引擎。 homepage: https://github.com/openclaw/skills/tree/main/data-viz-suite category: data-processing tags: - visualization - plotly - matplotlib - seaborn - dashboard - bi - charts - analytics
專業的資料視覺化解決方案,支援靜態圖表、互動式儀表盤和企業級報表。
小蔥技能站7w4.net每天更新,海量AI技能等你發現。
pip install -r requirements.txt
from scripts.chart_engine import ChartEngine
engine = ChartEngine(backend='plotly')
# 建立折線圖
data = {'月份': ['1月', '2月', '3月'], '銷售額': [100, 150, 200]}
fig = engine.line_chart(data, x='月份', y='銷售額', title='月度銷售趨勢')
fig.write_html('sales.html')
from scripts.dashboard import Dashboard
dash = Dashboard(title='業務監控大屏')
dash.add_chart('sales', engine.line_chart(data, x='月份', y='銷售額'))
dash.add_chart('users', engine.bar_chart(users, x='日期', y='新增使用者'))
dash.save('dashboard.html')
from scripts.report_generator import ReportGenerator
report = ReportGenerator()
report.add_section('銷售分析', charts=[fig1, fig2])
report.add_table('明細資料', dataframe=df)
report.export('report.pdf')
data-viz-suite/
├── SKILL.md # 本檔案
├── README.md # 詳細文件
├── requirements.txt # 依賴
├── examples/ # 示例
│ └── basic_usage.py
├── scripts/ # 核心指令碼
│ ├── chart_engine.py
│ ├── dashboard.py
│ ├── report_generator.py
│ └── data_connector.py
└── tests/ # 測試
├── test_chart_engine.py
├── test_dashboard.py
└── test_report_generator.py
from scripts.chart_engine import Theme
engine = ChartEngine(theme=Theme.DARK) # DARK, LIGHT, CORPORATE
# CSV/Excel
conn = DataConnector()
df = conn.load_csv('data.csv')
df = conn.load_excel('data.xlsx', sheet='Sheet1')
# SQL
config = {
'host': 'localhost',
'port': 3306,
'user': 'root',
'password': 'pass',
'database': 'analytics'
}
df = conn.load_sql('SELECT * FROM sales', config)
MIT License
這個資料視覺化工具質量中等偏上,優點是功能豐富、支援多種圖表和匯出格式、文件說明詳細。不足之處是有一些細節問題,比如文件描述的功能和實際包含的檔案對不上,還有些程式碼問題可能導致執行出錯。總體來說可以作為基礎的資料視覺化解決方案使用,但使用前建議先檢查文件和程式碼是否完全匹配。